Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.003719/0.003719, allocations: 178.4 kB / 7.45 MB, free: 2.32 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06086/0.06086, allocations: 10.58 MB / 18.46 MB, free: 2.16 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.585/1.585, allocations: 205.2 MB / 226.5 MB, free: 0.5234 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.001243/0.001243, allocations: 88.59 kB / 276.9 MB, free: 15.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.802e-06/6.822e-06, allocations: 0 / 332.9 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3297, allocations: 50 MB / 382.9 MB, free: 39.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.4407, allocations: 78.85 MB / 461.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.4411, allocations: 79.94 kB / 461.9 MB, free: 8.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02179/0.4629, allocations: 6.979 MB / 468.8 MB, free: 1.672 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.828e-05/0.463, allocations: 19.98 kB / 468.9 MB, free: 1.652 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.001325/0.4644, allocations: 0.7392 MB / 469.6 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.4644, allocations: 12.03 kB / 469.6 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.4646, allocations: 63.23 kB / 469.7 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008351/0.4654, allocations: 432.5 kB / 470.1 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.331e-05/0.4655, allocations: 19.94 kB / 470.1 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.542e-05/0.4655, allocations: 31.91 kB / 470.1 MB, free: 280 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006474/0.4662, allocations: 369.5 kB / 470.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007457/0.467, allocations: 479.9 kB / 471 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/0.467, allocations: 11.91 kB / 471 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.817e-05/0.4671, allocations: 0 / 471 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.4671, allocations: 8 kB / 471 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/0.4702, allocations: 1.748 MB / 472.7 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.4707, allocations: 226.7 kB / 473 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.471, allocations: 176.8 kB / 473.1 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.471, allocations: 4.266 kB / 473.1 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003222/0.4713, allocations: 256.7 kB / 473.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 2.124e-06/0.4714, allocations: 0 / 473.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007099/0.4721, allocations: 374.4 kB / 473.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.4721, allocations: 85.09 kB / 473.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.4726, allocations: 377 kB / 474.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.4726, allocations: 25.7 kB / 474.2 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.4728, allocations: 235.7 kB / 474.5 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.4729, allocations: 130.2 kB / 474.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.877e-05/0.473, allocations: 0 / 474.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.4732, allocations: 368.4 kB / 475 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.4734, allocations: 153.1 kB / 475.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/0.4738, allocations: 317.7 kB / 475.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003872/0.4742, allocations: 221.2 kB / 475.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.4743, allocations: 4 kB / 475.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009191/0.4752, allocations: 0.6085 MB / 476.2 MB, free: 9.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4752, allocations: 6.156 kB / 476.2 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4752, allocations: 4 kB / 476.2 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.783e-05/0.4753, allocations: 12.66 kB / 476.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/0.4758, allocations: 131.8 kB / 476.4 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.241e-05/0.4758, allocations: 15.92 kB / 476.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.476, allocations: 47.42 kB / 476.5 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-05/0.4761, allocations: 28 kB / 476.5 MB, free: 9.676 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.0002355/0.4764, allocations: 169.1 kB / 476.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.631e-05/0.4764, allocations: 51.42 kB / 476.7 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007262/0.4772, allocations: 439.5 kB / 477.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.4772, allocations: 4 kB / 477.1 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4772, allocations: 0 / 477.1 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4772, allocations: 11.98 kB / 477.1 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004943/0.4777, allocations: 421.6 kB / 477.6 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4777, allocations: 0 / 477.6 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005238/0.4783, allocations: 83.89 kB / 477.6 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4783, allocations: 0 / 477.6 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-05/0.4783, allocations: 24.72 kB / 477.7 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.4783, allocations: 4 kB / 477.7 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4783, allocations: 3.938 kB / 477.7 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008617/0.4792, allocations: 0.6257 MB / 478.3 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.4794, allocations: 128.3 kB / 478.4 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.554e-05/0.4794, allocations: 12 kB / 478.4 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.4796, allocations: 11.98 kB / 478.4 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.329e-05/0.4797, allocations: 20.25 kB / 478.5 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.4798, allocations: 13.31 kB / 478.5 MB, free: 7.594 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002758/0.48, allocations: 279.2 kB / 478.7 MB, free: 7.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004437/0.4805, allocations: 95.75 kB / 478.8 MB, free: 7.23 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.0002669/0.4808, allocations: 139.1 kB / 479 MB, free: 7.086 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006869/0.4815, allocations: 470.4 kB / 479.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.4815, allocations: 4 kB / 479.4 MB, free: 6.617 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002679/0.4818, allocations: 233.5 kB / 479.7 MB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.482, allocations: 34.17 kB / 479.7 MB, free: 6.348 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.4834, allocations: 0.8488 MB / 480.5 MB, free: 5.477 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000554/0.484, allocations: 0.9405 MB / 481.5 MB, free: 4.516 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.484, allocations: 0 / 481.5 MB, free: 4.516 MB / 362.7 MB Notification: Performance of Templates: time 0.008813/0.4928, allocations: 3.93 MB / 485.4 MB, free: 0.6055 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)