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.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_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 197 kB / 16.53 MB, free: 6.664 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.55/1.55, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05669/0.05669, allocations: 10.73 MB / 280.5 MB, free: 10.5 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.001371/0.001371, allocations: 71.83 kB / 340.5 MB, free: 23.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09763, allocations: 49.02 MB / 389.6 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003856/0.1015, allocations: 2.377 MB / 391.9 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.1041, allocations: 1.431 MB / 393.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002449/0.1044, allocations: 15.88 kB / 393.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007439/0.1051, allocations: 211 kB / 393.6 MB, free: 2.188 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003641/0.1055, allocations: 171.2 kB / 393.8 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1067, allocations: 407 kB / 394.1 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005907/0.1074, allocations: 0.5897 MB / 394.7 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1075, allocations: 89 kB / 394.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002436/0.1078, allocations: 231.2 kB / 395.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.1082, allocations: 235 kB / 395.3 MB, free: 488 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-05/0.1083, allocations: 32 kB / 395.3 MB, free: 456 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003428/0.1086, allocations: 147.8 kB / 395.5 MB, free: 308 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.1088, allocations: 143.5 kB / 395.6 MB, free: 164 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.1091, allocations: 214.6 kB / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005371/0.1096, allocations: 0.5414 MB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1096, allocations: 3.984 kB / 396.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1096, allocations: 0 / 396.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1096, allocations: 0 / 396.4 MB, free: 15.4 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001492/0.1111, allocations: 0.8883 MB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1112, allocations: 15.89 kB / 397.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.1113, allocations: 56.28 kB / 397.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005986/0.1119, allocations: 438.3 kB / 397.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.112, allocations: 33 kB / 397.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.622e-05/0.112, allocations: 44.03 kB / 397.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.1127, allocations: 432.3 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.1128, allocations: 4 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.1128, allocations: 12 kB / 398.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1128, allocations: 8 kB / 398.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.1134, allocations: 306.3 kB / 398.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.1157, allocations: 1.571 MB / 400.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.1161, allocations: 235 kB / 400.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.1163, allocations: 149 kB / 400.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.1164, allocations: 8.219 kB / 400.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005938/0.117, allocations: 244.4 kB / 400.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.064e-06/0.117, allocations: 0 / 400.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001002/0.118, allocations: 0.5519 MB / 401.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.1181, allocations: 110.8 kB / 401.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005115/0.1186, allocations: 0.5214 MB / 401.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1187, allocations: 29.7 kB / 402 MB, free: 9.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.1189, allocations: 271.9 kB / 402.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.303e-05/0.1189, allocations: 114.4 kB / 402.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.1191, allocations: 94.03 kB / 402.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1192, allocations: 374.8 kB / 402.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.1195, allocations: 136.9 kB / 402.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.1199, allocations: 294.1 kB / 403.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001803/0.1217, allocations: 0.8867 MB / 404.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1217, allocations: 7.938 kB / 404.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008669/0.1226, allocations: 0.6126 MB / 404.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.1227, allocations: 37.69 kB / 404.8 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1227, allocations: 4.531 kB / 404.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.1227, allocations: 11.94 kB / 404.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.1231, allocations: 111.9 kB / 404.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.1231, allocations: 11.92 kB / 404.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.1234, allocations: 63.36 kB / 405 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.1234, allocations: 20 kB / 405 MB, free: 6.305 MB / 302.1 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: 18 * Number of states: 0 () * Number of discrete variables: 16 ($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.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 (59): * Single equations (assignments): 58 * 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.0002906/0.1237, allocations: 265.2 kB / 405.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.475e-05/0.1238, allocations: 51.34 kB / 405.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007893/0.1246, allocations: 0.4886 MB / 405.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1246, allocations: 0 / 405.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.1246, allocations: 4 kB / 405.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1246, allocations: 0 / 405.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.125, allocations: 457 kB / 406.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.125, allocations: 0 / 406.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003664/0.1254, allocations: 71.89 kB / 406.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1254, allocations: 0 / 406.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.1255, allocations: 15.94 kB / 406.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1255, allocations: 7.984 kB / 406.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1255, allocations: 0 / 406.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009362/0.1264, allocations: 0.6633 MB / 407 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.431e-05/0.1265, allocations: 132.3 kB / 407.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.475e-05/0.1266, allocations: 15.94 kB / 407.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1267, allocations: 27.97 kB / 407.2 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.414e-05/0.1268, allocations: 23.97 kB / 407.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.1269, allocations: 8 kB / 407.2 MB, free: 3.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003412/0.1272, allocations: 374.8 kB / 407.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1272, allocations: 0 / 407.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.1276, allocations: 108 kB / 407.7 MB, free: 3.5 MB / 302.1 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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.0009715/0.1286, allocations: 456.1 kB / 408.1 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008148/0.1294, allocations: 0.5145 MB / 408.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.1295, allocations: 4 kB / 408.6 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003088/0.1298, allocations: 251.2 kB / 408.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.1302, allocations: 94.28 kB / 409 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.1315, allocations: 1.001 MB / 410 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.1319, allocations: 0.8742 MB / 410.8 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.1322, allocations: 100.1 kB / 410.9 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.901e-05/0.1323, allocations: 39.42 kB / 411 MB, free: 216 kB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1323, allocations: 0 / 411 MB, free: 216 kB / 302.1 MB Notification: Performance of Templates: time 0.01077/0.1431, allocations: 5.076 MB / 416 MB, free: 11.13 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile (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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)