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.001069/0.001069, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001334/0.001334, allocations: 189.4 kB / 16.25 MB, free: 6.625 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.425/1.425, allocations: 205.1 MB / 222.1 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05504/0.05504, allocations: 10.74 MB / 280.2 MB, free: 10.68 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.001289/0.001289, allocations: 67.91 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09115, allocations: 49.02 MB / 389.1 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003732/0.09492, allocations: 2.395 MB / 391.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.09699, allocations: 1.302 MB / 392.8 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.0972, allocations: 15.88 kB / 392.8 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008086/0.09807, allocations: 195.3 kB / 393 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000449/0.09853, allocations: 147.5 kB / 393.1 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.09955, allocations: 323.5 kB / 393.4 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005653/0.1001, allocations: 0.5342 MB / 394 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.1003, allocations: 89 kB / 394 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002386/0.1006, allocations: 215 kB / 394.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.1008, allocations: 215.1 kB / 394.5 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.1009, allocations: 31.98 kB / 394.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002435/0.1012, allocations: 147.8 kB / 394.6 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1013, allocations: 127.6 kB / 394.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.1015, allocations: 194.7 kB / 395 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005236/0.102, allocations: 494.6 kB / 395.4 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.102, allocations: 0 / 395.4 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.1021, allocations: 4 kB / 395.4 MB, free: 188 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1021, allocations: 3.938 kB / 395.4 MB, free: 184 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.001228/0.1033, allocations: 0.8372 MB / 396.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1034, allocations: 15.89 kB / 396.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.1035, allocations: 52.28 kB / 396.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/0.104, allocations: 414.4 kB / 396.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.1041, allocations: 20.94 kB / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/0.1041, allocations: 32.12 kB / 396.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006119/0.1047, allocations: 379.6 kB / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1048, allocations: 7.906 kB / 397.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.1048, allocations: 15.98 kB / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.1048, allocations: 8 kB / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004449/0.1053, allocations: 254 kB / 397.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1072, allocations: 1.391 MB / 398.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005483/0.1078, allocations: 210.5 kB / 399.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.108, allocations: 116.8 kB / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.108, allocations: 7.984 kB / 399.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003555/0.1084, allocations: 221.5 kB / 399.4 MB, free: 12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.1084, allocations: 4 kB / 399.4 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008591/0.1093, allocations: 477.3 kB / 399.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.1093, allocations: 110.8 kB / 400 MB, free: 11.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005243/0.1099, allocations: 489.8 kB / 400.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.1099, allocations: 29.7 kB / 400.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.1101, allocations: 252.1 kB / 400.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.1102, allocations: 86.8 kB / 400.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.1103, allocations: 81.59 kB / 400.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1105, allocations: 358.8 kB / 401.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.1107, allocations: 112.4 kB / 401.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.111, allocations: 232 kB / 401.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.1126, allocations: 0.7092 MB / 402.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1126, allocations: 4 kB / 402.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007909/0.1134, allocations: 498.1 kB / 402.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.545e-05/0.1134, allocations: 41.62 kB / 402.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1135, allocations: 8.344 kB / 402.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.1135, allocations: 11.94 kB / 402.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.1138, allocations: 83.83 kB / 402.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.1139, allocations: 4 kB / 402.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.1141, allocations: 47.58 kB / 403 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.1141, allocations: 16 kB / 403 MB, free: 8.203 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] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.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 ($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 (44): * Single equations (assignments): 43 * 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.0003196/0.1144, allocations: 248.3 kB / 403.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.1145, allocations: 51.31 kB / 403.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.1152, allocations: 432.6 kB / 403.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1152, allocations: 4 kB / 403.7 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1152, allocations: 4 kB / 403.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1153, allocations: 0 / 403.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.1156, allocations: 421.1 kB / 404.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1156, allocations: 0 / 404.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.1159, allocations: 47.91 kB / 404.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1159, allocations: 3.938 kB / 404.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.926e-05/0.116, allocations: 15.98 kB / 404.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.116, allocations: 0 / 404.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.116, allocations: 0 / 404.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008675/0.1168, allocations: 0.5809 MB / 404.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.117, allocations: 124.4 kB / 404.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/0.117, allocations: 16.06 kB / 404.9 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.1172, allocations: 11.98 kB / 404.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/0.1173, allocations: 27.84 kB / 404.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.1173, allocations: 12 kB / 404.9 MB, free: 6.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003821/0.1177, allocations: 339.1 kB / 405.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.096e-06/0.1177, allocations: 4 kB / 405.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.1181, allocations: 107.8 kB / 405.4 MB, free: 5.676 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 (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.0009641/0.1191, allocations: 451.2 kB / 405.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006543/0.1198, allocations: 427.7 kB / 406.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1198, allocations: 8.062 kB / 406.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000273/0.1201, allocations: 219.3 kB / 406.5 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004658/0.1205, allocations: 82.81 kB / 406.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.1217, allocations: 0.9506 MB / 407.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.1222, allocations: 0.8496 MB / 408.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.1224, allocations: 67.23 kB / 408.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.763e-05/0.1225, allocations: 43.42 kB / 408.5 MB, free: 2.629 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1225, allocations: 4 kB / 408.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of Templates: time 0.008816/0.1313, allocations: 4.528 MB / 413 MB, free: 14.09 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile (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)