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.001412/0.001412, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001526/0.001526, allocations: 194.3 kB / 16.14 MB, free: 6.656 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.542/1.542, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05364/0.05364, allocations: 10.74 MB / 280.1 MB, free: 10.7 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.001282/0.001282, allocations: 63.91 kB / 339.8 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 49.03 MB / 388.9 MB, free: 6.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003449/0.1061, allocations: 2.392 MB / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.1081, allocations: 1.337 MB / 392.6 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1083, allocations: 11.94 kB / 392.6 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006628/0.1089, allocations: 195.3 kB / 392.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.1093, allocations: 143.5 kB / 392.9 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007356/0.11, allocations: 303.5 kB / 393.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004772/0.1105, allocations: 0.5069 MB / 393.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1107, allocations: 88.98 kB / 393.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.1109, allocations: 183.2 kB / 394 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.1112, allocations: 211 kB / 394.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.679e-05/0.1112, allocations: 12 kB / 394.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.1115, allocations: 131.8 kB / 394.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.1116, allocations: 115.6 kB / 394.5 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.1118, allocations: 182.7 kB / 394.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.1123, allocations: 486.6 kB / 395.1 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1123, allocations: 0 / 395.1 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1123, allocations: 0 / 395.1 MB, free: 420 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.1123, allocations: 0 / 395.1 MB, free: 420 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.001333/0.1136, allocations: 0.8411 MB / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1137, allocations: 8.031 kB / 396 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.1138, allocations: 52.28 kB / 396 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007251/0.1145, allocations: 410.4 kB / 396.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.1146, allocations: 24.94 kB / 396.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.756e-05/0.1147, allocations: 32.12 kB / 396.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000892/0.1156, allocations: 379.6 kB / 396.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.1156, allocations: 3.906 kB / 396.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.1157, allocations: 15.98 kB / 396.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.1157, allocations: 8 kB / 396.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007008/0.1164, allocations: 254 kB / 397.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002655/0.1191, allocations: 1.395 MB / 398.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000721/0.1198, allocations: 210.5 kB / 398.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.1201, allocations: 116.8 kB / 398.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.1202, allocations: 7.984 kB / 398.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005068/0.1207, allocations: 217.5 kB / 399.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.665e-06/0.1207, allocations: 0 / 399.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001261/0.122, allocations: 481.3 kB / 399.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.1221, allocations: 114.8 kB / 399.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007426/0.1228, allocations: 489.8 kB / 400.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.1229, allocations: 25.7 kB / 400.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.1231, allocations: 264.1 kB / 400.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1232, allocations: 82.81 kB / 400.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.1234, allocations: 81.59 kB / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1236, allocations: 358.8 kB / 400.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.1239, allocations: 108.4 kB / 401 MB, free: 10.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004231/0.1244, allocations: 236 kB / 401.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002171/0.1265, allocations: 0.713 MB / 402 MB, free: 9.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.1266, allocations: 4 kB / 402 MB, free: 9.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00112/0.1277, allocations: 0.4908 MB / 402.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.1278, allocations: 48.44 kB / 402.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1278, allocations: 3.984 kB / 402.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.764e-05/0.1278, allocations: 8.406 kB / 402.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004466/0.1283, allocations: 83.83 kB / 402.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.438e-05/0.1283, allocations: 8 kB / 402.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.1287, allocations: 43.58 kB / 402.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.1287, allocations: 16 kB / 402.7 MB, free: 8.43 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.0004542/0.1292, allocations: 244.3 kB / 402.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.1293, allocations: 51.38 kB / 403 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.1304, allocations: 436.1 kB / 403.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.1304, allocations: 4 kB / 403.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1304, allocations: 0 / 403.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1304, allocations: 4 kB / 403.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/0.131, allocations: 421.1 kB / 403.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.131, allocations: 0 / 403.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.1314, allocations: 47.91 kB / 403.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.1314, allocations: 7.938 kB / 403.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.1315, allocations: 11.98 kB / 403.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.1315, allocations: 0 / 403.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1315, allocations: 0 / 403.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.1328, allocations: 0.5809 MB / 404.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.133, allocations: 128.4 kB / 404.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.1331, allocations: 12.06 kB / 404.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.1333, allocations: 11.98 kB / 404.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.1334, allocations: 23.91 kB / 404.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/0.1334, allocations: 12.12 kB / 404.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004882/0.1339, allocations: 343.1 kB / 405 MB, free: 6.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.134, allocations: 0 / 405 MB, free: 6.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006092/0.1346, allocations: 103.8 kB / 405.1 MB, free: 5.91 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.001412/0.136, allocations: 467 kB / 405.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009073/0.1369, allocations: 403.6 kB / 405.9 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1369, allocations: 4.188 kB / 405.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.1374, allocations: 223.3 kB / 406.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.138, allocations: 61.94 kB / 406.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.1398, allocations: 0.9677 MB / 407.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.1403, allocations: 0.8461 MB / 408 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003066/0.1406, allocations: 79.22 kB / 408.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.1407, allocations: 39.42 kB / 408.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1407, allocations: 4 kB / 408.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of Templates: time 0.01243/0.1532, allocations: 4.349 MB / 412.5 MB, free: 14.5 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)