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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 114.9 kB / 16.37 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 189.4 kB / 17.3 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05581/0.05581, allocations: 10.73 MB / 281.3 MB, free: 1.309 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001566, allocations: 71.89 kB / 342 MB, free: 4.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3657, allocations: 49 MB / 391 MB, free: 49.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003199/0.3689, allocations: 2.186 MB / 393.2 MB, free: 48.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.3707, allocations: 1.046 MB / 394.2 MB, free: 47.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.3709, allocations: 14.84 kB / 394.2 MB, free: 47.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000282/0.3712, allocations: 77.48 kB / 394.3 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.3713, allocations: 68.91 kB / 394.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009103/0.3722, allocations: 316.6 kB / 394.7 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006444/0.3729, allocations: 0.5938 MB / 395.3 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.3731, allocations: 82.19 kB / 395.4 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.3733, allocations: 216.8 kB / 395.6 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.3737, allocations: 245.1 kB / 395.8 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.359e-05/0.3737, allocations: 34.25 kB / 395.9 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.3739, allocations: 114 kB / 396 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.3741, allocations: 149.7 kB / 396.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001763/0.3743, allocations: 220.8 kB / 396.3 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005306/0.3749, allocations: 0.5017 MB / 396.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3749, allocations: 4.656 kB / 396.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3749, allocations: 1.969 kB / 396.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3749, allocations: 0 / 396.8 MB, free: 46.52 MB / 318.1 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.001274/0.3762, allocations: 0.8486 MB / 397.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3762, allocations: 13.39 kB / 397.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.3763, allocations: 60.91 kB / 397.8 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000631/0.377, allocations: 438.4 kB / 398.2 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.377, allocations: 30.95 kB / 398.2 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.997e-05/0.3771, allocations: 49.84 kB / 398.3 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007941/0.3779, allocations: 0.508 MB / 398.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.3779, allocations: 7.953 kB / 398.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.378, allocations: 16.59 kB / 398.8 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.378, allocations: 9.062 kB / 398.8 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000629/0.3786, allocations: 389.9 kB / 399.2 MB, free: 45.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002412/0.3811, allocations: 1.795 MB / 401 MB, free: 43.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004825/0.3815, allocations: 276.5 kB / 401.3 MB, free: 43.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.3818, allocations: 181.1 kB / 401.4 MB, free: 43.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.3818, allocations: 3.406 kB / 401.4 MB, free: 43.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003485/0.3822, allocations: 254 kB / 401.7 MB, free: 43.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.3822, allocations: 0 / 401.7 MB, free: 43.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009556/0.3832, allocations: 0.5826 MB / 402.3 MB, free: 43.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.3832, allocations: 81.58 kB / 402.3 MB, free: 42.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/0.3837, allocations: 498.7 kB / 402.8 MB, free: 42.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.3838, allocations: 32.02 kB / 402.9 MB, free: 42.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.3839, allocations: 282.2 kB / 403.1 MB, free: 42.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.747e-05/0.384, allocations: 135.3 kB / 403.3 MB, free: 42.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3842, allocations: 108.3 kB / 403.4 MB, free: 42.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.254e-05/0.3843, allocations: 369.2 kB / 403.7 MB, free: 41.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.3845, allocations: 166 kB / 403.9 MB, free: 41.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/0.3848, allocations: 327.3 kB / 404.2 MB, free: 41.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001876/0.3867, allocations: 1.075 MB / 405.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.3867, allocations: 2.062 kB / 405.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001049/0.3878, allocations: 0.7222 MB / 406 MB, free: 40.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.3878, allocations: 43.47 kB / 406.1 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3878, allocations: 6 kB / 406.1 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.3879, allocations: 7.188 kB / 406.1 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004809/0.3884, allocations: 141.4 kB / 406.2 MB, free: 40.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.3884, allocations: 8.719 kB / 406.2 MB, free: 40.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.3886, allocations: 63.8 kB / 406.3 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.3887, allocations: 24.41 kB / 406.3 MB, free: 40.21 MB / 318.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true 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 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003166/0.389, allocations: 288.2 kB / 406.6 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.3891, allocations: 51.03 kB / 406.6 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007854/0.3899, allocations: 0.5111 MB / 407.1 MB, free: 39.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3899, allocations: 7.469 kB / 407.2 MB, free: 39.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3899, allocations: 0 / 407.2 MB, free: 39.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.3899, allocations: 5.234 kB / 407.2 MB, free: 39.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.3904, allocations: 482.7 kB / 407.6 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3904, allocations: 0 / 407.6 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004608/0.3909, allocations: 87.97 kB / 407.7 MB, free: 39.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3909, allocations: 1.281 kB / 407.7 MB, free: 39.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.861e-05/0.3909, allocations: 16.39 kB / 407.7 MB, free: 39.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3909, allocations: 1.062 kB / 407.7 MB, free: 39.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3909, allocations: 0 / 407.7 MB, free: 39.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008126/0.3918, allocations: 0.7147 MB / 408.4 MB, free: 38.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.31e-05/0.3919, allocations: 132.5 kB / 408.6 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.18e-05/0.3919, allocations: 23.92 kB / 408.6 MB, free: 38.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3921, allocations: 15.98 kB / 408.6 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.3922, allocations: 19.97 kB / 408.6 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.3922, allocations: 12 kB / 408.6 MB, free: 38.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002582/0.3925, allocations: 342.8 kB / 409 MB, free: 38.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3925, allocations: 0 / 409 MB, free: 38.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004105/0.3929, allocations: 115.8 kB / 409.1 MB, free: 37.95 MB / 318.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001799/0.3931, allocations: 148.2 kB / 409.2 MB, free: 37.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006348/0.3937, allocations: 0.5553 MB / 409.8 MB, free: 37.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3937, allocations: 8 kB / 409.8 MB, free: 37.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.394, allocations: 283 kB / 410.1 MB, free: 36.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.3943, allocations: 51.39 kB / 410.1 MB, free: 36.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.3959, allocations: 1.086 MB / 411.2 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.3962, allocations: 0.8859 MB / 412.1 MB, free: 34.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002331/0.3965, allocations: 108.1 kB / 412.2 MB, free: 34.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.3965, allocations: 31.44 kB / 412.2 MB, free: 34.71 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3966, allocations: 0 / 412.2 MB, free: 34.71 MB / 318.1 MB Notification: Performance of Templates: time 0.00745/0.404, allocations: 3.849 MB / 416.1 MB, free: 30.88 MB / 318.1 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)