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.0009139/0.0009139, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009422/0.0009423, allocations: 177.3 kB / 15.94 MB, free: 228 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.305/1.305, allocations: 205.4 MB / 222.1 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05398/0.05398, allocations: 10.74 MB / 281.1 MB, free: 10.45 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.0004954/0.0004956, allocations: 16.22 kB / 341.6 MB, free: 23.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07854/0.07904, allocations: 50.01 MB / 391.6 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00229/0.08137, allocations: 1.953 MB / 393.5 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.08306, allocations: 1.225 MB / 394.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.08324, allocations: 11.88 kB / 394.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005408/0.0838, allocations: 175.4 kB / 394.9 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.0841, allocations: 143.5 kB / 395.1 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000656/0.08476, allocations: 279.4 kB / 395.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003968/0.08517, allocations: 327.5 kB / 395.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.08531, allocations: 65.2 kB / 395.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.08554, allocations: 175.2 kB / 395.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.08577, allocations: 179.2 kB / 396.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.08583, allocations: 12 kB / 396.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.08602, allocations: 103.8 kB / 396.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.08614, allocations: 107.6 kB / 396.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.23e-05/0.08623, allocations: 93.45 kB / 396.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.08658, allocations: 363.4 kB / 396.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.0866, allocations: 0 / 396.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.0866, allocations: 0 / 396.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.08662, allocations: 0 / 396.8 MB, free: 0.5938 MB / 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.001072/0.0877, allocations: 0.7598 MB / 397.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.08774, allocations: 12.03 kB / 397.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.08784, allocations: 59.34 kB / 397.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.08839, allocations: 393.4 kB / 398 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.08843, allocations: 20.56 kB / 398 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.554e-05/0.0885, allocations: 35.94 kB / 398 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.08905, allocations: 379.6 kB / 398.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.08908, allocations: 7.906 kB / 398.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.08912, allocations: 15.95 kB / 398.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.08913, allocations: 4 kB / 398.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004363/0.08957, allocations: 262 kB / 398.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.09137, allocations: 1.395 MB / 400.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004471/0.09183, allocations: 206.9 kB / 400.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.09187, allocations: 4.172 kB / 400.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003184/0.09219, allocations: 225.8 kB / 400.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.09221, allocations: 0 / 400.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008665/0.09308, allocations: 0.549 MB / 401.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.09315, allocations: 114.8 kB / 401.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000489/0.09365, allocations: 481.8 kB / 401.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.09369, allocations: 29.7 kB / 401.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.09386, allocations: 252.1 kB / 401.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.385e-05/0.09394, allocations: 90.73 kB / 402 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.09396, allocations: 4 kB / 402 MB, free: 11.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.0941, allocations: 362.8 kB / 402.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.09432, allocations: 116.4 kB / 402.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.09458, allocations: 224.2 kB / 402.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.09485, allocations: 185.4 kB / 402.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.09486, allocations: 0 / 402.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007131/0.09558, allocations: 0.4905 MB / 403.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.09564, allocations: 44.62 kB / 403.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.09565, allocations: 4 kB / 403.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.09567, allocations: 4 kB / 403.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.09596, allocations: 75.89 kB / 403.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.09599, allocations: 4 kB / 403.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.09619, allocations: 55.92 kB / 403.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.09623, allocations: 15.98 kB / 403.6 MB, free: 9.406 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.0002787/0.09651, allocations: 244.5 kB / 403.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.592e-05/0.09657, allocations: 47.44 kB / 403.8 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006936/0.09727, allocations: 435.8 kB / 404.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.09729, allocations: 4 kB / 404.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.0973, allocations: 3.938 kB / 404.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.09732, allocations: 3.984 kB / 404.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003762/0.0977, allocations: 417.2 kB / 404.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.09771, allocations: 4 kB / 404.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.09796, allocations: 47.97 kB / 404.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.09798, allocations: 4 kB / 404.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.09801, allocations: 11.98 kB / 404.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.423e-06/0.09803, allocations: 3.953 kB / 404.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.09803, allocations: 4 kB / 404.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008385/0.09887, allocations: 0.5847 MB / 405.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.497e-05/0.09898, allocations: 120.5 kB / 405.5 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.09905, allocations: 15.98 kB / 405.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.0992, allocations: 15.98 kB / 405.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.09927, allocations: 28.14 kB / 405.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.0993, allocations: 8 kB / 405.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003192/0.09963, allocations: 339.1 kB / 405.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09963, allocations: 0 / 405.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.1, allocations: 107.8 kB / 406 MB, free: 6.875 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.0009273/0.1009, allocations: 451.2 kB / 406.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006371/0.1016, allocations: 415.9 kB / 406.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1016, allocations: 0 / 406.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.1019, allocations: 231.2 kB / 407 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.1022, allocations: 57.94 kB / 407.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1033, allocations: 0.9193 MB / 408 MB, free: 4.863 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.1037, allocations: 0.8577 MB / 408.9 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.1039, allocations: 79.22 kB / 409 MB, free: 3.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.01e-05/0.104, allocations: 35.42 kB / 409 MB, free: 3.867 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.104, allocations: 0 / 409 MB, free: 3.867 MB / 302.1 MB Notification: Performance of Templates: time 0.008198/0.1122, allocations: 4.2 MB / 413.2 MB, free: 15.66 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: