Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Examples.TestD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003816/0.003816, allocations: 175.3 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06163/0.06163, allocations: 10.58 MB / 18.45 MB, free: 2.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.2 MB / 226.5 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009561/0.0009561, allocations: 81.7 kB / 276.9 MB, free: 15.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.913e-06, allocations: 0 / 332.9 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3276, allocations: 50 MB / 382.9 MB, free: 39.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.4351, allocations: 78.86 MB / 461.8 MB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.4354, allocations: 75.95 kB / 461.9 MB, free: 8.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02571/0.4611, allocations: 6.934 MB / 468.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.887e-05/0.4612, allocations: 23.86 kB / 468.8 MB, free: 1.793 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001917/0.4632, allocations: 0.7264 MB / 469.5 MB, free: 1.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.4632, allocations: 8.031 kB / 469.5 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.4635, allocations: 59.25 kB / 469.6 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.465, allocations: 448.3 kB / 470 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.4651, allocations: 12 kB / 470.1 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.4652, allocations: 35.91 kB / 470.1 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001105/0.4663, allocations: 365.6 kB / 470.4 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.4676, allocations: 484 kB / 470.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-05/0.4677, allocations: 7.906 kB / 470.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.967e-05/0.4677, allocations: 0 / 470.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.4678, allocations: 15.98 kB / 470.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004754/0.4725, allocations: 1.748 MB / 472.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000689/0.4733, allocations: 217.6 kB / 472.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.4737, allocations: 172.8 kB / 473.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.321e-05/0.4737, allocations: 8 kB / 473.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005265/0.4743, allocations: 249.1 kB / 473.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 4.208e-06/0.4743, allocations: 0 / 473.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.001189/0.4755, allocations: 390.2 kB / 473.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.416e-05/0.4756, allocations: 82.42 kB / 473.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007574/0.4764, allocations: 365 kB / 474.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.4764, allocations: 33.64 kB / 474.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002828/0.4767, allocations: 223.8 kB / 474.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.4769, allocations: 138.1 kB / 474.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.477, allocations: 0 / 474.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002784/0.4773, allocations: 358.8 kB / 474.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004402/0.4777, allocations: 157.1 kB / 475 MB, free: 11.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005856/0.4783, allocations: 321.6 kB / 475.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006011/0.479, allocations: 215.7 kB / 475.6 MB, free: 10.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.479, allocations: 0 / 475.6 MB, free: 10.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001576/0.4806, allocations: 0.6161 MB / 476.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.4806, allocations: 4 kB / 476.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.4806, allocations: 4 kB / 476.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.359e-05/0.4807, allocations: 8 kB / 476.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009426/0.4816, allocations: 135.8 kB / 476.3 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.725e-05/0.4817, allocations: 11.94 kB / 476.3 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004539/0.4821, allocations: 51.8 kB / 476.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/0.4822, allocations: 24 kB / 476.4 MB, free: 9.836 MB / 362.7 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] processNoCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.Y[3]:VARIABLE(protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,$PRE.Disturbance.nextEvent,Disturbance.nextEvent,Disturbance.nextEventScaled,R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.4826, allocations: 174.1 kB / 476.6 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.4828, allocations: 55.34 kB / 476.6 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.4841, allocations: 431.5 kB / 477.1 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.4841, allocations: 7.984 kB / 477.1 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.4842, allocations: 4 kB / 477.1 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.4842, allocations: 4 kB / 477.1 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009466/0.4851, allocations: 425.6 kB / 477.5 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.4852, allocations: 0 / 477.5 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008893/0.4861, allocations: 83.89 kB / 477.6 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.4861, allocations: 1.031 kB / 477.6 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.83e-05/0.4862, allocations: 19.98 kB / 477.6 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.4862, allocations: 3.938 kB / 477.6 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4862, allocations: 0 / 477.6 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001517/0.4877, allocations: 0.6341 MB / 478.2 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.4879, allocations: 120.5 kB / 478.3 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.488, allocations: 15.98 kB / 478.4 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.4883, allocations: 4 kB / 478.4 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.4884, allocations: 20.25 kB / 478.4 MB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.4885, allocations: 15.98 kB / 478.4 MB, free: 7.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005511/0.4891, allocations: 275.2 kB / 478.7 MB, free: 7.492 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008981/0.49, allocations: 109.1 kB / 478.8 MB, free: 7.387 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004116/0.4904, allocations: 133 kB / 478.9 MB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.4915, allocations: 470.7 kB / 479.4 MB, free: 6.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4915, allocations: 0 / 479.4 MB, free: 6.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004268/0.492, allocations: 237.5 kB / 479.6 MB, free: 6.543 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.4924, allocations: 34.11 kB / 479.6 MB, free: 6.512 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.4945, allocations: 0.8486 MB / 480.5 MB, free: 5.637 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008998/0.4954, allocations: 0.9337 MB / 481.4 MB, free: 4.68 MB / 362.7 MB Notification: Performance of SimCode: time 2.715e-06/0.4954, allocations: 3.938 kB / 481.4 MB, free: 4.676 MB / 362.7 MB Notification: Performance of Templates: time 0.01434/0.5098, allocations: 3.913 MB / 485.3 MB, free: 0.7852 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe 2>&1)