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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001411/0.001411, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07505/0.07505, allocations: 10.66 MB / 18.73 MB, free: 1.324 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.899/1.899, allocations: 205.3 MB / 226.9 MB, free: 7.902 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.0009411/0.0009411, allocations: 94.41 kB / 277.3 MB, free: 5.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.907e-05/1.901e-05, allocations: 4 kB / 333.6 MB, free: 28.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.119, allocations: 49.99 MB / 383.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4801/0.5992, allocations: 82.62 MB / 466.2 MB, free: 2.102 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.5995, allocations: 78.64 kB / 466.3 MB, free: 2.059 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02914/0.6287, allocations: 10.19 MB / 476.5 MB, free: 9.578 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6288, allocations: 0 / 476.5 MB, free: 9.578 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.516e-05/0.6288, allocations: 8 kB / 476.5 MB, free: 9.57 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.001317/0.6301, allocations: 0.7441 MB / 477.2 MB, free: 8.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.6302, allocations: 12.03 kB / 477.3 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.6303, allocations: 59.23 kB / 477.3 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008805/0.6312, allocations: 431.7 kB / 477.7 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.6313, allocations: 11.94 kB / 477.8 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.975e-05/0.6313, allocations: 23.98 kB / 477.8 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004375/0.6318, allocations: 225.4 kB / 478 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.6324, allocations: 346 kB / 478.3 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.6324, allocations: 3.984 kB / 478.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.6324, allocations: 11.77 kB / 478.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.6325, allocations: 8 kB / 478.4 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.6346, allocations: 1.343 MB / 479.7 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005306/0.6352, allocations: 200.8 kB / 479.9 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.6354, allocations: 111.5 kB / 480 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.6354, allocations: 4.188 kB / 480 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003482/0.6358, allocations: 215 kB / 480.2 MB, free: 6.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.715e-06/0.6358, allocations: 4 kB / 480.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007521/0.6366, allocations: 342.6 kB / 480.6 MB, free: 5.875 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.6367, allocations: 114.8 kB / 480.7 MB, free: 5.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.6372, allocations: 388.9 kB / 481 MB, free: 5.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.6372, allocations: 29.7 kB / 481.1 MB, free: 5.398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.6375, allocations: 250.7 kB / 481.3 MB, free: 5.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.61e-05/0.6376, allocations: 91.28 kB / 481.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.667e-05/0.6376, allocations: 0 / 481.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002385/0.6378, allocations: 355.2 kB / 481.8 MB, free: 4.809 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.638, allocations: 106.8 kB / 481.9 MB, free: 4.738 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.6383, allocations: 215.8 kB / 482.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/0.6387, allocations: 138.2 kB / 482.2 MB, free: 4.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6387, allocations: 4 kB / 482.2 MB, free: 4.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008479/0.6395, allocations: 435.8 kB / 482.6 MB, free: 4.062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/0.6396, allocations: 37.7 kB / 482.7 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.6396, allocations: 0 / 482.7 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.074e-05/0.6397, allocations: 8.406 kB / 482.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.64, allocations: 87.2 kB / 482.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.64, allocations: 7.953 kB / 482.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.6403, allocations: 39.66 kB / 482.8 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.6403, allocations: 23.55 kB / 482.8 MB, free: 3.863 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.0002818/0.6406, allocations: 163 kB / 483 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006346/0.6413, allocations: 349.9 kB / 483.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.6413, allocations: 47.44 kB / 483.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007588/0.6421, allocations: 386.4 kB / 483.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.6421, allocations: 7.938 kB / 483.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.6421, allocations: 3.984 kB / 483.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.6421, allocations: 0 / 483.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005096/0.6427, allocations: 378.4 kB / 484.1 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.6427, allocations: 0 / 484.1 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.643, allocations: 51.41 kB / 484.2 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.643, allocations: 0 / 484.2 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.643, allocations: 15.48 kB / 484.2 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.6431, allocations: 3.984 kB / 484.2 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/0.6431, allocations: 3.953 kB / 484.2 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009787/0.6441, allocations: 0.5471 MB / 484.8 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.6443, allocations: 128.4 kB / 484.9 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/0.6444, allocations: 11.98 kB / 484.9 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.6445, allocations: 11.98 kB / 484.9 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6446, allocations: 15.92 kB / 484.9 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/0.6447, allocations: 23.06 kB / 485 MB, free: 2.004 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003823/0.6451, allocations: 291.6 kB / 485.2 MB, free: 1.785 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6451, allocations: 3.938 kB / 485.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000567/0.6457, allocations: 103.8 kB / 485.3 MB, free: 1.68 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.002165/0.6478, allocations: 1.347 MB / 486.7 MB, free: 448 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.6484, allocations: 369.3 kB / 487 MB, free: 160 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6484, allocations: 4 kB / 487.1 MB, free: 156 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.6487, allocations: 210.8 kB / 487.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.6492, allocations: 66 kB / 487.3 MB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.6507, allocations: 0.7593 MB / 488.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.6513, allocations: 0.8634 MB / 488.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.6515, allocations: 67.23 kB / 489 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.6518, allocations: 156.7 kB / 489.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6518, allocations: 0 / 489.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04033/0.6921, allocations: 7.855 MB / 497 MB, free: 6.383 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/0.6924, allocations: 196 kB / 497.2 MB, free: 6.188 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.45/3.143, allocations: 0 / 497.2 MB, free: 6.188 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)