Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001796/0.001796, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.498/1.498, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05839/0.05839, allocations: 10.74 MB / 281.3 MB, free: 1.301 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.001464/0.001464, allocations: 70.06 kB / 391.5 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08927, allocations: 49.03 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002932/0.09224, allocations: 2.352 MB / 442.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.09401, allocations: 1.431 MB / 444.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.09423, allocations: 19.92 kB / 444.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006652/0.09492, allocations: 207.1 kB / 444.5 MB, free: 15.79 MB / 334.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.0003527/0.09528, allocations: 167.1 kB / 444.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009206/0.09621, allocations: 399 kB / 445.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000646/0.09687, allocations: 0.5937 MB / 445.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.09706, allocations: 92.97 kB / 445.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002782/0.09735, allocations: 227.2 kB / 446 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.09768, allocations: 239 kB / 446.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.925e-05/0.09776, allocations: 32 kB / 446.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000269/0.09803, allocations: 155.8 kB / 446.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.0982, allocations: 147.5 kB / 446.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.09839, allocations: 206.6 kB / 446.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006118/0.09901, allocations: 0.5528 MB / 447.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.09902, allocations: 0 / 447.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.09903, allocations: 0 / 447.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.09904, allocations: 0 / 447.3 MB, free: 13.01 MB / 334.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.001421/0.1005, allocations: 0.8844 MB / 448.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1005, allocations: 11.89 kB / 448.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1006, allocations: 64.19 kB / 448.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006034/0.1012, allocations: 446.4 kB / 448.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.1013, allocations: 29.03 kB / 448.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.307e-05/0.1014, allocations: 51.95 kB / 448.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/0.1021, allocations: 432.3 kB / 449.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.1021, allocations: 4 kB / 449.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.1021, allocations: 12 kB / 449.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1022, allocations: 12 kB / 449.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.1027, allocations: 318.3 kB / 449.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.1049, allocations: 1.552 MB / 451.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004285/0.1054, allocations: 231 kB / 451.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.1056, allocations: 149 kB / 451.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.1056, allocations: 4.234 kB / 451.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003887/0.106, allocations: 243.2 kB / 451.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.106, allocations: 0 / 451.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009943/0.107, allocations: 0.552 MB / 452.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.1071, allocations: 110.8 kB / 452.4 MB, free: 7.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000533/0.1077, allocations: 0.5175 MB / 452.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.1077, allocations: 37.7 kB / 452.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.1079, allocations: 271.9 kB / 453.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.108, allocations: 114.4 kB / 453.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.1081, allocations: 94.03 kB / 453.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1083, allocations: 370.8 kB / 453.8 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.1086, allocations: 136.9 kB / 453.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003529/0.1089, allocations: 290.2 kB / 454.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/0.1107, allocations: 0.8984 MB / 455.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1107, allocations: 0 / 455.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000944/0.1117, allocations: 0.6165 MB / 455.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.483e-05/0.1117, allocations: 39.73 kB / 455.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1118, allocations: 4.531 kB / 455.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1118, allocations: 7.938 kB / 455.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000434/0.1122, allocations: 115.8 kB / 455.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.1123, allocations: 15.92 kB / 455.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.1125, allocations: 55.52 kB / 455.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.931e-05/0.1126, allocations: 23.98 kB / 455.9 MB, free: 3.895 MB / 334.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.0003214/0.1129, allocations: 261.1 kB / 456.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.086e-05/0.113, allocations: 51.44 kB / 456.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008451/0.1138, allocations: 499.8 kB / 456.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.1138, allocations: 4 kB / 456.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1138, allocations: 0 / 456.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1139, allocations: 0 / 456.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000454/0.1143, allocations: 449.2 kB / 457.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.1143, allocations: 0 / 457.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.1147, allocations: 63.89 kB / 457.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.786e-05/0.1148, allocations: 4 kB / 457.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.1148, allocations: 23.92 kB / 457.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.1148, allocations: 4 kB / 457.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1148, allocations: 4 kB / 457.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.1159, allocations: 0.6632 MB / 457.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.116, allocations: 132.5 kB / 458.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.1161, allocations: 15.94 kB / 458.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.1163, allocations: 15.98 kB / 458.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.928e-05/0.1164, allocations: 27.95 kB / 458.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.1164, allocations: 19.98 kB / 458.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003858/0.1168, allocations: 358.8 kB / 458.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1168, allocations: 0 / 458.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000448/0.1173, allocations: 119.8 kB / 458.6 MB, free: 1.105 MB / 334.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.001063/0.1183, allocations: 462.3 kB / 459.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007968/0.1191, allocations: 494.9 kB / 459.6 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1192, allocations: 0 / 459.6 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003334/0.1195, allocations: 259.2 kB / 459.8 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.12, allocations: 83.84 kB / 459.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.1215, allocations: 1.026 MB / 460.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.122, allocations: 0.8703 MB / 461.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.1221, allocations: 39.44 kB / 461.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1222, allocations: 0 / 461.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of Templates: time 0.01259/0.1348, allocations: 6.651 MB / 468.5 MB, free: 7.285 MB / 350.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)