Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.006153/0.006153, allocations: 169.5 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.05968/0.05968, allocations: 10.74 MB / 26.59 MB, free: 2.266 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.485/1.485, allocations: 205.4 MB / 235.2 MB, free: 188 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.001036/0.001036, allocations: 78.95 kB / 285.9 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 8 kB / 346.5 MB, free: 5.086 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09764, allocations: 49.99 MB / 396.5 MB, free: 2.996 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2846/0.3823, allocations: 83.38 MB / 479.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3825, allocations: 79.89 kB / 480 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03164/0.4142, allocations: 10.76 MB / 490.7 MB, free: 3.957 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4143, allocations: 0 / 490.7 MB, free: 3.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.488e-05/0.4143, allocations: 15.98 kB / 490.7 MB, free: 3.941 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001527/0.4159, allocations: 0.8426 MB / 491.6 MB, free: 3.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4159, allocations: 12.03 kB / 491.6 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.814e-05/0.416, allocations: 71.66 kB / 491.6 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.4162, allocations: 59.25 kB / 491.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009812/0.4171, allocations: 451.5 kB / 492.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.4172, allocations: 30.02 kB / 492.2 MB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.271e-05/0.4173, allocations: 40.06 kB / 492.2 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.4182, allocations: 447.3 kB / 492.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.4183, allocations: 15.84 kB / 492.7 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.4183, allocations: 19.02 kB / 492.7 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.4183, allocations: 8 kB / 492.7 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008/0.4191, allocations: 321.8 kB / 493 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.4221, allocations: 1.598 MB / 494.6 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005962/0.4227, allocations: 252 kB / 494.9 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.317e-05/0.4227, allocations: 8.234 kB / 494.9 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004972/0.4233, allocations: 251.2 kB / 495.1 MB, free: 0 / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.765e-06/0.4233, allocations: 0 / 495.1 MB, free: 0 / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.001693/0.425, allocations: 0.6516 MB / 495.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.857e-05/0.4251, allocations: 111.3 kB / 495.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008435/0.4259, allocations: 475.1 kB / 496.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/0.426, allocations: 29.27 kB / 496.4 MB, free: 14.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002955/0.4263, allocations: 274.8 kB / 496.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.4265, allocations: 112.6 kB / 496.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.4265, allocations: 6.938 kB / 496.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002666/0.4268, allocations: 372.2 kB / 497.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004021/0.4272, allocations: 153.3 kB / 497.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005618/0.4278, allocations: 296.1 kB / 497.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005337/0.4283, allocations: 231.1 kB / 497.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.4283, allocations: 0 / 497.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001498/0.4298, allocations: 0.6423 MB / 498.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.179e-05/0.4299, allocations: 37.69 kB / 498.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.4299, allocations: 8.469 kB / 498.5 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.43, allocations: 8 kB / 498.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007132/0.4307, allocations: 118.6 kB / 498.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.4307, allocations: 4 kB / 498.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003922/0.4311, allocations: 60.83 kB / 498.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.808e-05/0.4312, allocations: 19.12 kB / 498.7 MB, free: 12.94 MB / 362.7 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 58 * 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.0004949/0.4317, allocations: 258.5 kB / 498.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.4319, allocations: 51.34 kB / 499 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.4332, allocations: 0.5285 MB / 499.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.4332, allocations: 4 kB / 499.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4332, allocations: 0 / 499.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4333, allocations: 0 / 499.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.4339, allocations: 465.3 kB / 500 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.434, allocations: 4 kB / 500 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006598/0.4346, allocations: 75.89 kB / 0.4883 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.4347, allocations: 4 kB / 0.4883 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.527e-05/0.4347, allocations: 11.98 kB / 0.4883 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.4347, allocations: 4 kB / 0.4883 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4348, allocations: 0 / 0.4883 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.4364, allocations: 0.7099 MB / 0.489 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.4366, allocations: 136.5 kB / 0.4892 GB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.863e-05/0.4367, allocations: 19.92 kB / 0.4892 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.437, allocations: 19.98 kB / 0.4892 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.622e-05/0.4371, allocations: 27.91 kB / 0.4892 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/0.4371, allocations: 8 kB / 0.4892 GB, free: 10.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006063/0.4377, allocations: 366.8 kB / 0.4896 GB, free: 10.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4377, allocations: 0 / 0.4896 GB, free: 10.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008188/0.4386, allocations: 135.8 kB / 0.4897 GB, free: 10.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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 (31): * Single equations (assignments): 28 * 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.003419/0.442, allocations: 1.586 MB / 0.4913 GB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.4432, allocations: 496 kB / 0.4917 GB, free: 8.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.4432, allocations: 3.938 kB / 0.4917 GB, free: 8.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.4437, allocations: 263.3 kB / 0.492 GB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.4443, allocations: 70.72 kB / 0.492 GB, free: 7.836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00823/0.4526, allocations: 5.817 MB / 0.4977 GB, free: 1.891 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.4531, allocations: 0.8859 MB / 0.4986 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003156/0.4534, allocations: 95.39 kB / 0.4987 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/0.4537, allocations: 171.4 kB / 0.4989 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4537, allocations: 4 kB / 0.4989 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03275/0.4865, allocations: 9.775 MB / 0.5084 GB, free: 6.969 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002926/0.4868, allocations: 243.2 kB / 0.5086 GB, free: 6.727 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/2.905, allocations: 0 / 0.5086 GB, free: 6.727 MB / 378.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)