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.001193/0.001193, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06294/0.06294, allocations: 10.65 MB / 23.92 MB, free: 1.379 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.2 MB / 232.1 MB, free: 12.77 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008833/0.0008833, allocations: 98.39 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.747e-05/4.788e-05, allocations: 0 / 340.6 MB, free: 3.512 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3665, allocations: 49.98 MB / 390.6 MB, free: 35.72 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.506, allocations: 82.97 MB / 473.5 MB, free: 0.6328 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004095/0.5065, allocations: 75.95 kB / 473.6 MB, free: 0.5586 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.04015/0.5467, allocations: 10.26 MB / 483.9 MB, free: 6.27 MB / 362.8 MB Notification: Performance of FrontEnd: time 5.08e-06/0.5468, allocations: 0 / 483.9 MB, free: 6.27 MB / 362.8 MB Notification: Performance of Transformations before backend: time 5.313e-05/0.5468, allocations: 11.94 kB / 483.9 MB, free: 6.258 MB / 362.8 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.001654/0.5485, allocations: 0.7449 MB / 484.6 MB, free: 5.457 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 8.716e-05/0.5486, allocations: 12.03 kB / 484.6 MB, free: 5.445 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001397/0.5487, allocations: 70.48 kB / 484.7 MB, free: 5.367 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.5489, allocations: 55.34 kB / 484.8 MB, free: 5.312 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.55, allocations: 425.3 kB / 485.2 MB, free: 4.855 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/0.5501, allocations: 20.56 kB / 485.2 MB, free: 4.836 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.846e-05/0.5502, allocations: 28 kB / 485.2 MB, free: 4.809 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009231/0.5511, allocations: 394.3 kB / 485.6 MB, free: 4.391 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.5512, allocations: 0 / 485.6 MB, free: 4.391 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.5512, allocations: 12 kB / 485.6 MB, free: 4.379 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.5512, allocations: 11.95 kB / 485.6 MB, free: 4.367 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.5519, allocations: 254.1 kB / 485.9 MB, free: 4.117 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003065/0.555, allocations: 1.422 MB / 487.3 MB, free: 2.609 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.5557, allocations: 206.9 kB / 487.5 MB, free: 2.398 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.556, allocations: 125 kB / 487.6 MB, free: 2.273 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.114e-05/0.556, allocations: 4.188 kB / 487.6 MB, free: 2.27 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004692/0.5565, allocations: 217.7 kB / 487.8 MB, free: 2.039 MB / 362.8 MB Notification: Performance of pre-optimization done (n=28): time 1.791e-05/0.5565, allocations: 0 / 487.8 MB, free: 2.039 MB / 362.8 MB Notification: Performance of matching and sorting (n=28): time 0.001067/0.5576, allocations: 385.5 kB / 488.2 MB, free: 1.652 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.698e-05/0.5577, allocations: 114.8 kB / 488.3 MB, free: 1.516 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008301/0.5586, allocations: 435.1 kB / 488.8 MB, free: 1.09 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.5586, allocations: 29.7 kB / 488.8 MB, free: 1.055 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002712/0.5589, allocations: 244 kB / 489 MB, free: 0.8125 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.5591, allocations: 98.64 kB / 489.1 MB, free: 0.7148 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.5591, allocations: 8 kB / 489.1 MB, free: 0.707 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.5593, allocations: 359.4 kB / 489.5 MB, free: 356 kB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.5596, allocations: 108.4 kB / 489.6 MB, free: 248 kB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.56, allocations: 224.3 kB / 489.8 MB, free: 15.98 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.5604, allocations: 178.3 kB / 490 MB, free: 15.8 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5604, allocations: 4 kB / 490 MB, free: 15.79 MB / 378.8 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001159/0.5616, allocations: 0.4914 MB / 490.5 MB, free: 15.29 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.308e-05/0.5617, allocations: 41.62 kB / 490.5 MB, free: 15.24 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.5617, allocations: 7.953 kB / 490.5 MB, free: 15.23 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.07e-05/0.5618, allocations: 4.406 kB / 490.5 MB, free: 15.23 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.5623, allocations: 83.89 kB / 490.6 MB, free: 15.15 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.493e-05/0.5623, allocations: 11.94 kB / 490.6 MB, free: 15.14 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/0.5627, allocations: 39.67 kB / 490.7 MB, free: 15.1 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.661e-05/0.5627, allocations: 27.98 kB / 490.7 MB, free: 15.07 MB / 378.8 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.0002797/0.563, allocations: 171.5 kB / 490.9 MB, free: 14.89 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.5632, allocations: 51.44 kB / 490.9 MB, free: 14.84 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.5644, allocations: 456.4 kB / 491.4 MB, free: 14.38 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.5644, allocations: 7.953 kB / 491.4 MB, free: 14.37 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.5644, allocations: 0 / 491.4 MB, free: 14.37 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.5644, allocations: 0 / 491.4 MB, free: 14.37 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.5652, allocations: 429.1 kB / 491.8 MB, free: 13.9 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.5653, allocations: 0 / 491.8 MB, free: 13.9 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.5657, allocations: 55.97 kB / 491.8 MB, free: 13.85 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.936e-06/0.5657, allocations: 4 kB / 491.8 MB, free: 13.84 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.5658, allocations: 8 kB / 491.8 MB, free: 13.84 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.175e-06/0.5658, allocations: 0 / 491.8 MB, free: 13.84 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.5658, allocations: 3.953 kB / 491.9 MB, free: 13.83 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.5672, allocations: 0.5917 MB / 492.4 MB, free: 13.21 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.5674, allocations: 128.5 kB / 492.6 MB, free: 13.07 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.652e-05/0.5675, allocations: 20 kB / 492.6 MB, free: 13.05 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.5678, allocations: 15.98 kB / 492.6 MB, free: 13.04 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.5679, allocations: 23.92 kB / 492.6 MB, free: 13.01 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/0.568, allocations: 12 kB / 492.6 MB, free: 13 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.000649/0.5686, allocations: 341.2 kB / 493 MB, free: 12.67 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5686, allocations: 0 / 493 MB, free: 12.67 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0007657/0.5694, allocations: 103.8 kB / 493.1 MB, free: 12.57 MB / 378.8 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.003169/0.5726, allocations: 1.441 MB / 494.5 MB, free: 11.16 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0009167/0.5735, allocations: 385 kB / 494.9 MB, free: 10.78 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5735, allocations: 128 / 494.9 MB, free: 10.78 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004314/0.574, allocations: 231.2 kB / 495.1 MB, free: 10.54 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.5745, allocations: 62.05 kB / 495.2 MB, free: 10.48 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.5767, allocations: 0.7938 MB / 496 MB, free: 9.648 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006616/0.5774, allocations: 0.8538 MB / 496.8 MB, free: 8.77 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0003508/0.5778, allocations: 83.16 kB / 496.9 MB, free: 8.688 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003345/0.5781, allocations: 159.4 kB / 497.1 MB, free: 8.531 MB / 378.8 MB Notification: Performance of SimCode: time 5.72e-07/0.5781, allocations: 0 / 497.1 MB, free: 8.531 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3485/0.9266, allocations: 8.631 MB / 0.4938 GB, free: 102.4 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.9268, allocations: 219.8 kB / 0.4941 GB, free: 102.2 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.311/3.238, allocations: 0 / 0.4941 GB, free: 102.2 MB / 378.8 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)