Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_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.009844/0.009844, allocations: 169.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07871/0.07871, allocations: 10.74 MB / 26.59 MB, free: 2.238 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.768/1.768, allocations: 205.4 MB / 235.2 MB, free: 184 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008476/0.0008475, allocations: 88.06 kB / 285.9 MB, free: 10.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003263, allocations: 12 kB / 346.5 MB, free: 5.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1114, allocations: 49.99 MB / 396.5 MB, free: 2.992 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3221/0.4336, allocations: 83.43 MB / 479.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.4338, allocations: 83.66 kB / 480 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02664/0.4605, allocations: 10.53 MB / 490.5 MB, free: 4.039 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.407e-06/0.4605, allocations: 0 / 490.5 MB, free: 4.039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.628e-05/0.4606, allocations: 15.94 kB / 490.5 MB, free: 4.023 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.001277/0.4618, allocations: 0.8198 MB / 491.4 MB, free: 3.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.4619, allocations: 8.031 kB / 491.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.071e-05/0.462, allocations: 69.16 kB / 491.4 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4621, allocations: 59.28 kB / 491.5 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007397/0.4629, allocations: 447.5 kB / 491.9 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/0.4629, allocations: 80.75 kB / 492 MB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.463, allocations: 30.06 kB / 492 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005746/0.4636, allocations: 412.6 kB / 492.4 MB, free: 2.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.4636, allocations: 7.984 kB / 492.5 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.796e-05/0.4637, allocations: 18.27 kB / 492.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.4637, allocations: 8 kB / 492.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004401/0.4641, allocations: 277.3 kB / 492.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.4661, allocations: 1.505 MB / 494.3 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.4665, allocations: 208.4 kB / 494.5 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.4666, allocations: 4.188 kB / 494.5 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.4669, allocations: 234 kB / 494.7 MB, free: 256 kB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 3.257e-06/0.4669, allocations: 0 / 494.7 MB, free: 256 kB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009423/0.4679, allocations: 0.5811 MB / 495.3 MB, free: 15.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.008e-05/0.4679, allocations: 110.8 kB / 495.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005183/0.4685, allocations: 436.5 kB / 495.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.4685, allocations: 33.08 kB / 495.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.4687, allocations: 249.9 kB / 496.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/0.4688, allocations: 97.55 kB / 496.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/0.4688, allocations: 3.75 kB / 496.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.469, allocations: 369.6 kB / 496.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.4693, allocations: 130.3 kB / 496.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003653/0.4696, allocations: 236.6 kB / 496.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.47, allocations: 189.5 kB / 497.1 MB, free: 14.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.47, allocations: 0 / 497.1 MB, free: 14.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009056/0.4709, allocations: 0.538 MB / 497.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.4709, allocations: 36.77 kB / 497.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.471, allocations: 7.984 kB / 497.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.471, allocations: 7.938 kB / 497.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005808/0.4716, allocations: 90.89 kB / 497.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.4716, allocations: 8 kB / 497.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.4719, allocations: 44.73 kB / 497.8 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/0.4719, allocations: 19.25 kB / 497.8 MB, free: 13.51 MB / 362.7 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 (45): * Single equations (assignments): 44 * 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.0004015/0.4723, allocations: 247.8 kB / 498.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.4724, allocations: 47.44 kB / 498.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009627/0.4734, allocations: 470 kB / 498.6 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4734, allocations: 4 kB / 498.6 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4734, allocations: 4 kB / 498.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.4735, allocations: 7.984 kB / 498.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005123/0.474, allocations: 440.5 kB / 499 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.474, allocations: 3.984 kB / 499 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006255/0.4746, allocations: 67.89 kB / 499.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.4746, allocations: 0 / 499.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.4747, allocations: 11.75 kB / 499.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4747, allocations: 0 / 499.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4747, allocations: 0 / 499.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.4757, allocations: 0.6503 MB / 499.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.4759, allocations: 134.3 kB / 499.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.896e-05/0.476, allocations: 13.05 kB / 499.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.4761, allocations: 26.98 kB / 499.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.035e-05/0.4762, allocations: 19.11 kB / 499.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.4763, allocations: 15.55 kB / 500 MB, free: 11.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003827/0.4766, allocations: 335.3 kB / 0.4886 GB, free: 11.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4767, allocations: 4 kB / 0.4886 GB, free: 11.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004689/0.4771, allocations: 119 kB / 0.4887 GB, free: 11.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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) * 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.00228/0.4794, allocations: 1.509 MB / 0.4902 GB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007854/0.4802, allocations: 428.1 kB / 0.4906 GB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4802, allocations: 0 / 0.4906 GB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.4806, allocations: 235.1 kB / 0.4908 GB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.481, allocations: 61.88 kB / 0.4908 GB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005215/0.4862, allocations: 4.795 MB / 0.4955 GB, free: 4.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.4867, allocations: 0.8577 MB / 0.4964 GB, free: 3.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.4869, allocations: 75.22 kB / 0.4964 GB, free: 3.199 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.4872, allocations: 171.4 kB / 0.4966 GB, free: 3.031 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4872, allocations: 0 / 0.4966 GB, free: 3.031 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.5103, allocations: 8.887 MB / 0.5053 GB, free: 10.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.5106, allocations: 242.9 kB / 0.5055 GB, free: 9.922 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.688, allocations: 0 / 0.5055 GB, free: 9.922 MB / 378.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)