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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009488/0.0009486, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05619/0.05619, allocations: 10.66 MB / 18.73 MB, free: 1.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.574/1.574, allocations: 205.3 MB / 226.9 MB, free: 7.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009082/0.0009081, allocations: 94.41 kB / 277.3 MB, free: 5.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.038e-05/1.028e-05, allocations: 0 / 333.5 MB, free: 28.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09753, allocations: 50 MB / 383.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3789/0.4764, allocations: 82.61 MB / 466.1 MB, free: 2.199 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.4767, allocations: 87.5 kB / 466.2 MB, free: 2.156 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02916/0.5059, allocations: 10.19 MB / 476.4 MB, free: 9.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.506, allocations: 0 / 476.4 MB, free: 9.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.444e-05/0.506, allocations: 15.98 kB / 476.4 MB, free: 9.648 MB / 346.7 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.001344/0.5074, allocations: 0.7329 MB / 477.2 MB, free: 8.887 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.5075, allocations: 8.031 kB / 477.2 MB, free: 8.879 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.5077, allocations: 63.28 kB / 477.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008125/0.5085, allocations: 419.4 kB / 477.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.5085, allocations: 19.98 kB / 477.7 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-05/0.5086, allocations: 19.25 kB / 477.7 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004365/0.509, allocations: 226.8 kB / 477.9 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000516/0.5096, allocations: 348.1 kB / 478.2 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.5096, allocations: 7.938 kB / 478.2 MB, free: 7.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.5097, allocations: 7.953 kB / 478.2 MB, free: 7.898 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.5097, allocations: 8 kB / 478.3 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.5117, allocations: 1.349 MB / 479.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.5122, allocations: 196.2 kB / 479.8 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.5123, allocations: 115.3 kB / 479.9 MB, free: 6.441 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.5124, allocations: 192 / 479.9 MB, free: 6.441 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.5127, allocations: 207.3 kB / 480.1 MB, free: 6.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.5127, allocations: 0 / 480.1 MB, free: 6.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006402/0.5133, allocations: 345.4 kB / 480.4 MB, free: 5.973 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.5134, allocations: 117.9 kB / 480.6 MB, free: 5.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.5138, allocations: 382 kB / 480.9 MB, free: 5.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.5139, allocations: 29.39 kB / 481 MB, free: 5.504 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.514, allocations: 254.3 kB / 481.2 MB, free: 5.324 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.762e-05/0.5141, allocations: 86.91 kB / 481.3 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.57e-05/0.5142, allocations: 0 / 481.3 MB, free: 5.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.5143, allocations: 364.2 kB / 481.7 MB, free: 4.906 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.5145, allocations: 97.22 kB / 481.7 MB, free: 4.844 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.5147, allocations: 214.2 kB / 482 MB, free: 4.625 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.515, allocations: 143.6 kB / 482.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.515, allocations: 0 / 482.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006768/0.5157, allocations: 448.1 kB / 482.5 MB, free: 4.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.5157, allocations: 33.7 kB / 482.6 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.5158, allocations: 4 kB / 482.6 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.5158, allocations: 4 kB / 482.6 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.5161, allocations: 80.11 kB / 482.7 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.5161, allocations: 19.89 kB / 482.7 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.5163, allocations: 35.67 kB / 482.7 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.5164, allocations: 19.36 kB / 482.7 MB, free: 3.965 MB / 346.7 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] process.Y[3]:VARIABLE(protected = true ) type: Real [3] process.U[2]:VARIABLE(protected = true ) type: Real [2] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(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 () * 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.0002098/0.5166, allocations: 179.2 kB / 482.9 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.897e-05/0.5167, allocations: 43.44 kB / 482.9 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006751/0.5174, allocations: 393.5 kB / 483.3 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.5174, allocations: 0 / 483.3 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5174, allocations: 4 kB / 483.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.5174, allocations: 7.938 kB / 483.3 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003838/0.5178, allocations: 367.8 kB / 483.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5178, allocations: 0 / 483.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.5181, allocations: 51.97 kB / 483.8 MB, free: 3.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.5181, allocations: 0 / 483.8 MB, free: 3.035 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.5182, allocations: 14.92 kB / 483.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.5182, allocations: 0 / 483.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.5182, allocations: 0 / 483.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008183/0.519, allocations: 0.5431 MB / 484.3 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.5191, allocations: 127.7 kB / 484.4 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.611e-05/0.5192, allocations: 11.17 kB / 484.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.5194, allocations: 19.98 kB / 484.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.744e-05/0.5194, allocations: 19.11 kB / 484.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.5195, allocations: 15.48 kB / 484.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003044/0.5198, allocations: 294.7 kB / 484.8 MB, free: 2.168 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5198, allocations: 0 / 484.8 MB, free: 2.168 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004477/0.5203, allocations: 107.7 kB / 484.9 MB, free: 2.062 MB / 346.7 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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 23 * 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.0009035/0.5212, allocations: 401 kB / 485.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004973/0.5217, allocations: 365.8 kB / 485.6 MB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5217, allocations: 4 kB / 485.6 MB, free: 1.398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.5219, allocations: 210.9 kB / 485.8 MB, free: 1.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.5223, allocations: 70.69 kB / 485.9 MB, free: 1.184 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.5234, allocations: 0.6271 MB / 486.5 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.5239, allocations: 0.8587 MB / 487.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.5241, allocations: 67.23 kB / 487.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.165e-05/0.5242, allocations: 34.56 kB / 487.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5242, allocations: 0 / 487.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of Templates: time 0.009423/0.5337, allocations: 3.965 MB / 491.5 MB, free: 11.67 MB / 362.7 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)