Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.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.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009521/0.0009519, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.0011/0.0011, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05651/0.05651, allocations: 10.75 MB / 281.1 MB, free: 10.54 MB / 238.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.0005408/0.0005409, allocations: 16 kB / 341.6 MB, free: 23.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.103, allocations: 50 MB / 391.6 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003148/0.1063, allocations: 1.953 MB / 393.6 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.1087, allocations: 1.245 MB / 394.8 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.1091, allocations: 11.88 kB / 394.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007791/0.1099, allocations: 187.4 kB / 395 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004963/0.1104, allocations: 139.4 kB / 395.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1115, allocations: 287.5 kB / 395.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008948/0.1124, allocations: 467.1 kB / 395.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.1127, allocations: 61.25 kB / 396 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000445/0.1131, allocations: 187.2 kB / 396.1 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.1134, allocations: 191.2 kB / 396.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.632e-05/0.1135, allocations: 12 kB / 396.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003193/0.1138, allocations: 119.8 kB / 396.5 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.114, allocations: 103.7 kB / 396.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1141, allocations: 93.45 kB / 396.6 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1145, allocations: 367.4 kB / 397 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1145, allocations: 0 / 397 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1145, allocations: 0 / 397 MB, free: 368 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1145, allocations: 0 / 397 MB, free: 368 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001164/0.1157, allocations: 0.7593 MB / 397.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.1158, allocations: 12.03 kB / 397.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.38e-05/0.1159, allocations: 51.34 kB / 397.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.1164, allocations: 397.4 kB / 398.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.1164, allocations: 20.56 kB / 398.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.1165, allocations: 28 kB / 398.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006019/0.1171, allocations: 383.6 kB / 398.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.1171, allocations: 3.906 kB / 398.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.1172, allocations: 19.95 kB / 398.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.1172, allocations: 8 kB / 398.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004424/0.1176, allocations: 254 kB / 398.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.1195, allocations: 1.395 MB / 400.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004825/0.12, allocations: 214.8 kB / 400.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.1202, allocations: 125 kB / 400.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.1202, allocations: 4.188 kB / 400.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003584/0.1206, allocations: 217.8 kB / 400.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.505e-06/0.1206, allocations: 0 / 400.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008776/0.1215, allocations: 485 kB / 401.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1216, allocations: 114.8 kB / 401.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.1222, allocations: 485.8 kB / 401.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.1222, allocations: 29.7 kB / 401.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1224, allocations: 256.1 kB / 402.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/0.1225, allocations: 82.81 kB / 402.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.1225, allocations: 8 kB / 402.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1227, allocations: 358.8 kB / 402.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.1229, allocations: 116.4 kB / 402.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.1232, allocations: 228.2 kB / 403 MB, free: 10.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.1235, allocations: 177.4 kB / 403.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1235, allocations: 0 / 403.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008493/0.1243, allocations: 0.4944 MB / 403.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.1244, allocations: 48.45 kB / 403.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1244, allocations: 4 kB / 403.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.1245, allocations: 8 kB / 403.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.1248, allocations: 71.91 kB / 403.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.1248, allocations: 16.31 kB / 403.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.125, allocations: 55.58 kB / 403.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.1251, allocations: 12 kB / 403.9 MB, free: 9.145 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.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 (44): * Single equations (assignments): 43 * 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.000308/0.1254, allocations: 240.5 kB / 404.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.773e-05/0.1255, allocations: 47.44 kB / 404.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007316/0.1262, allocations: 439.7 kB / 404.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.1262, allocations: 7.938 kB / 404.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.1262, allocations: 0 / 404.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1262, allocations: 7.984 kB / 404.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004205/0.1267, allocations: 413.2 kB / 405 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1267, allocations: 4 kB / 405 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.1269, allocations: 47.97 kB / 405 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.127, allocations: 3.938 kB / 405 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.416e-05/0.127, allocations: 12 kB / 405 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.127, allocations: 3.953 kB / 405.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.127, allocations: 0 / 405.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000914/0.1279, allocations: 0.5856 MB / 405.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.1281, allocations: 124.5 kB / 405.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.1281, allocations: 12 kB / 405.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1283, allocations: 15.98 kB / 405.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.212e-05/0.1284, allocations: 27.86 kB / 405.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.1284, allocations: 12 kB / 405.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004039/0.1288, allocations: 343.1 kB / 406.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1289, allocations: 0 / 406.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004409/0.1293, allocations: 103.8 kB / 406.3 MB, free: 6.613 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.001073/0.1304, allocations: 459.4 kB / 406.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007899/0.1312, allocations: 407 kB / 407.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1312, allocations: 0 / 407.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.1315, allocations: 227.3 kB / 407.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.132, allocations: 66.73 kB / 407.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.1334, allocations: 0.9228 MB / 408.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.1339, allocations: 0.85 MB / 409.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002443/0.1342, allocations: 71.22 kB / 409.2 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.468e-05/0.1342, allocations: 39.36 kB / 409.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1343, allocations: 0 / 409.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of Templates: time 0.0105/0.1448, allocations: 4.219 MB / 413.5 MB, free: 15.4 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) Environment - environmentSimulation: