Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 173.3 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9576/0.9576, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03642/0.03642, allocations: 8.618 MB / 268.6 MB, free: 4.93 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 340.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.584e-05/1.755e-05, allocations: 2.312 kB / 340.9 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.006383/0.006401, allocations: 2.439 MB / 343.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005474/0.01187, allocations: 1.637 MB / 345 MB, free: 4.301 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.01206, allocations: 31.69 kB / 345 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007133/0.01278, allocations: 226.8 kB / 345.2 MB, free: 4.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003462/0.01624, allocations: 206.9 kB / 345.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000832/0.01707, allocations: 466.7 kB / 345.9 MB, free: 3.387 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.01762, allocations: 0.5865 MB / 346.5 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.01778, allocations: 65.22 kB / 346.5 MB, free: 2.734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.01809, allocations: 303.2 kB / 346.8 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.01838, allocations: 219.4 kB / 347 MB, free: 2.223 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.118e-05/0.01844, allocations: 36 kB / 347.1 MB, free: 2.188 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002278/0.01867, allocations: 151.8 kB / 347.2 MB, free: 2.039 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.0188, allocations: 147.5 kB / 347.4 MB, free: 1.895 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.01893, allocations: 139.5 kB / 347.5 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003514/0.02244, allocations: 474.2 kB / 348 MB, free: 1.293 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.02245, allocations: 0 / 348 MB, free: 1.293 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.02245, allocations: 0 / 348 MB, free: 1.293 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.02245, allocations: 0 / 348 MB, free: 1.293 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001087/0.02354, allocations: 0.9671 MB / 348.9 MB, free: 284 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.02358, allocations: 8.031 kB / 348.9 MB, free: 276 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.02372, allocations: 96.52 kB / 349 MB, free: 180 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.02432, allocations: 429.6 kB / 349.4 MB, free: 15.72 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.02436, allocations: 29.38 kB / 349.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.055e-05/0.02443, allocations: 36.38 kB / 349.5 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003632/0.02806, allocations: 411.1 kB / 349.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.02809, allocations: 11.88 kB / 349.9 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.02813, allocations: 16 kB / 349.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.02815, allocations: 12 kB / 349.9 MB, free: 15.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003992/0.02855, allocations: 193.4 kB / 350.1 MB, free: 14.97 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.03075, allocations: 2.083 MB / 352.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003352/0.0341, allocations: 170.5 kB / 352.4 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.03426, allocations: 89.59 kB / 352.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.03428, allocations: 4.234 kB / 352.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.03459, allocations: 222.6 kB / 352.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.0346, allocations: 0 / 352.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007686/0.03536, allocations: 438.2 kB / 353.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.03541, allocations: 81.11 kB / 353.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005444/0.03596, allocations: 0.522 MB / 353.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.03599, allocations: 29.7 kB / 353.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.03622, allocations: 351.2 kB / 354.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.952e-05/0.03632, allocations: 123 kB / 354.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.03647, allocations: 111.8 kB / 354.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.03666, allocations: 0.5391 MB / 354.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.03684, allocations: 90.81 kB / 355 MB, free: 9.922 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.03716, allocations: 354.1 kB / 355.3 MB, free: 9.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006468/0.03781, allocations: 0.5357 MB / 355.8 MB, free: 8.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.03782, allocations: 0 / 355.8 MB, free: 8.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007583/0.03857, allocations: 0.5014 MB / 356.3 MB, free: 8.301 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.03862, allocations: 45.62 kB / 356.4 MB, free: 8.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.03863, allocations: 4 kB / 356.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.03865, allocations: 8 kB / 356.4 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000382/0.03903, allocations: 108.5 kB / 356.5 MB, free: 8.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.03904, allocations: 19.92 kB / 356.5 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.03925, allocations: 67.48 kB / 356.6 MB, free: 8.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.03929, allocations: 20 kB / 356.6 MB, free: 8.027 MB / 282.7 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0002492/0.03954, allocations: 262 kB / 356.9 MB, free: 7.754 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.008e-05/0.03963, allocations: 71.61 kB / 356.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006834/0.04032, allocations: 394.5 kB / 357.3 MB, free: 7.277 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.04032, allocations: 4 kB / 357.3 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.04032, allocations: 0 / 357.3 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.04033, allocations: 0 / 357.3 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.04071, allocations: 356.3 kB / 357.7 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.04071, allocations: 0 / 357.7 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.04106, allocations: 67.89 kB / 357.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.04106, allocations: 0 / 357.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.04111, allocations: 16 kB / 357.7 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.04111, allocations: 3.938 kB / 357.7 MB, free: 6.805 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.04111, allocations: 3.984 kB / 357.8 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008324/0.04195, allocations: 0.5262 MB / 358.3 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.196e-05/0.04201, allocations: 59.55 kB / 358.3 MB, free: 6.172 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/0.04208, allocations: 16 kB / 358.4 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.04222, allocations: 19.92 kB / 358.4 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.04231, allocations: 27.95 kB / 358.4 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.244e-05/0.04234, allocations: 15.94 kB / 358.4 MB, free: 6.094 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003242/0.04267, allocations: 326.8 kB / 358.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.04267, allocations: 0 / 358.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004279/0.04309, allocations: 119.8 kB / 358.9 MB, free: 5.66 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.001204/0.0443, allocations: 438.9 kB / 359.3 MB, free: 5.367 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005788/0.04488, allocations: 388 kB / 359.7 MB, free: 4.961 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.04488, allocations: 0 / 359.7 MB, free: 4.961 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.04513, allocations: 212.6 kB / 359.9 MB, free: 4.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.04552, allocations: 77.17 kB / 359.9 MB, free: 4.656 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.04676, allocations: 0.9257 MB / 360.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.04688, allocations: 149.6 kB / 361 MB, free: 3.523 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.04709, allocations: 88.11 kB / 361.1 MB, free: 3.434 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.04719, allocations: 44.5 kB / 361.1 MB, free: 3.391 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.04719, allocations: 0 / 361.1 MB, free: 3.391 MB / 282.7 MB Notification: Performance of Templates: time 0.01121/0.0584, allocations: 5.436 MB / 366.6 MB, free: 14.01 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.996596940793097]