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.01044/0.01044, allocations: 170.7 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08175/0.08175, allocations: 10.74 MB / 26.59 MB, free: 2.23 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.992/1.992, allocations: 205.4 MB / 235.2 MB, free: 176 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.0009964/0.0009962, allocations: 78.73 kB / 285.9 MB, free: 10.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003614, allocations: 8 kB / 346.5 MB, free: 5.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.112, allocations: 49.98 MB / 396.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3185/0.4306, allocations: 83.07 MB / 479.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4308, allocations: 83.39 kB / 479.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02474/0.4556, allocations: 10.28 MB / 489.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4556, allocations: 0 / 489.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.463e-05/0.4557, allocations: 26.8 kB / 490 MB, free: 4.586 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.001252/0.4569, allocations: 0.8012 MB / 490.8 MB, free: 3.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.457, allocations: 8.031 kB / 490.8 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.116e-05/0.4571, allocations: 68.41 kB / 490.8 MB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.4572, allocations: 51.34 kB / 490.9 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006847/0.4579, allocations: 436.4 kB / 491.3 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.4579, allocations: 22.67 kB / 491.3 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.974e-05/0.458, allocations: 31.75 kB / 491.4 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005608/0.4586, allocations: 399.5 kB / 491.7 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.4586, allocations: 7.984 kB / 491.8 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.4586, allocations: 14.38 kB / 491.8 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.4587, allocations: 11.95 kB / 491.8 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.4591, allocations: 267.7 kB / 492 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.4609, allocations: 1.427 MB / 493.5 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.4613, allocations: 210.6 kB / 493.7 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.4614, allocations: 4.188 kB / 493.7 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.4617, allocations: 231.8 kB / 493.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.164e-06/0.4617, allocations: 3.938 kB / 493.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007925/0.4625, allocations: 0.5744 MB / 494.5 MB, free: 472 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.4626, allocations: 109.7 kB / 494.6 MB, free: 340 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.463, allocations: 441.9 kB / 495 MB, free: 15.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.463, allocations: 29.08 kB / 495.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.4632, allocations: 251.7 kB / 495.3 MB, free: 15.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.582e-05/0.4633, allocations: 91.77 kB / 495.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.792e-05/0.4633, allocations: 11.06 kB / 495.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4634, allocations: 357.8 kB / 495.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.4637, allocations: 120.3 kB / 495.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.464, allocations: 240.6 kB / 496.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.4642, allocations: 180.3 kB / 496.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4643, allocations: 0 / 496.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009183/0.4652, allocations: 0.5163 MB / 496.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.223e-05/0.4652, allocations: 37.69 kB / 496.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.4653, allocations: 4.406 kB / 496.8 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/0.4653, allocations: 11.95 kB / 496.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.4656, allocations: 78.91 kB / 496.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.4657, allocations: 7.984 kB / 496.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.4659, allocations: 49.2 kB / 497 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.466, allocations: 18.81 kB / 497 MB, free: 14.27 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 (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.0004374/0.4664, allocations: 242.7 kB / 497.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.53e-05/0.4665, allocations: 47.44 kB / 497.3 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008459/0.4674, allocations: 476.7 kB / 497.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.4674, allocations: 7.953 kB / 497.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4674, allocations: 0 / 497.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4674, allocations: 3.984 kB / 497.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004591/0.4679, allocations: 423.6 kB / 498.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.4679, allocations: 0 / 498.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.4682, allocations: 54.78 kB / 498.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.4682, allocations: 4 kB / 498.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.4682, allocations: 15.23 kB / 498.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.4682, allocations: 0 / 498.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4683, allocations: 7.953 kB / 498.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4693, allocations: 0.6275 MB / 498.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.4695, allocations: 128 kB / 499 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.088e-05/0.4695, allocations: 10.75 kB / 499 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.4697, allocations: 23.48 kB / 499 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/0.4698, allocations: 19.53 kB / 499.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.4698, allocations: 11.95 kB / 499.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003807/0.4702, allocations: 342.8 kB / 499.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4702, allocations: 0 / 499.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005524/0.4708, allocations: 116 kB / 499.5 MB, free: 12.1 MB / 362.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) * Number of clocked states: 0 () * 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.002113/0.4729, allocations: 1.507 MB / 0.4893 GB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000661/0.4736, allocations: 411.8 kB / 0.4897 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4736, allocations: 0 / 0.4897 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.4739, allocations: 231.2 kB / 0.4899 GB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.4743, allocations: 62.73 kB / 0.49 GB, free: 9.996 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.4794, allocations: 4.716 MB / 0.4946 GB, free: 5.164 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.4799, allocations: 0.8655 MB / 0.4954 GB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002788/0.4801, allocations: 75.17 kB / 0.4955 GB, free: 4.203 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.4804, allocations: 155.4 kB / 0.4956 GB, free: 4.055 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4804, allocations: 0 / 0.4956 GB, free: 4.055 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02511/0.5055, allocations: 8.768 MB / 0.5042 GB, free: 11.31 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.5057, allocations: 250.9 kB / 0.5044 GB, free: 11.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.193/2.698, allocations: 0 / 0.5044 GB, free: 11.06 MB / 378.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)