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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004913/0.004914, allocations: 95.31 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 202.8 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1892/0.1892, allocations: 11.19 MB / 301.7 MB, free: 1.305 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 55.91 kB / 417.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2443, allocations: 51.97 MB / 469.3 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.004109/0.2485, allocations: 2.434 MB / 471.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.2512, allocations: 1.54 MB / 473.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/0.2515, allocations: 14.75 kB / 473.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007459/0.2523, allocations: 221.9 kB / 473.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000466/0.2528, allocations: 163.8 kB / 473.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.2541, allocations: 447.5 kB / 474.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008373/0.255, allocations: 0.6267 MB / 474.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.2552, allocations: 84.56 kB / 474.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.2555, allocations: 229.4 kB / 475.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.2558, allocations: 251.1 kB / 475.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.198e-05/0.2559, allocations: 33 kB / 475.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003101/0.2562, allocations: 159.9 kB / 475.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.2563, allocations: 147.7 kB / 475.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.2565, allocations: 225.8 kB / 475.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006692/0.2572, allocations: 0.5739 MB / 476.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2572, allocations: 0 / 476.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.2572, allocations: 0.9688 kB / 476.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.2572, allocations: 7.922 kB / 476.4 MB, free: 12.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001375/0.2586, allocations: 0.9332 MB / 477.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.2587, allocations: 12.3 kB / 477.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.477e-05/0.2588, allocations: 79.56 kB / 477.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.2589, allocations: 66.45 kB / 477.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006031/0.2595, allocations: 477 kB / 478 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.2595, allocations: 28.75 kB / 478 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.592e-05/0.2596, allocations: 40.78 kB / 478.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007848/0.2604, allocations: 492.6 kB / 478.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.2605, allocations: 2.406 kB / 478.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.2605, allocations: 13.16 kB / 478.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.2605, allocations: 8 kB / 478.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006208/0.2612, allocations: 335.8 kB / 478.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.2635, allocations: 1.906 MB / 480.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000415/0.2639, allocations: 250.4 kB / 481 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.2642, allocations: 147.4 kB / 481.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.2642, allocations: 8.531 kB / 481.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003556/0.2646, allocations: 240.8 kB / 481.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.274e-06/0.2646, allocations: 0 / 481.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.000957/0.2655, allocations: 0.5507 MB / 482 MB, free: 8.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.2656, allocations: 108.2 kB / 482.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.2661, allocations: 0.5439 MB / 482.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.2662, allocations: 37.05 kB / 482.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.2663, allocations: 282.9 kB / 482.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.2664, allocations: 115.8 kB / 483.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.2665, allocations: 110 kB / 483.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.2666, allocations: 365.9 kB / 483.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.2668, allocations: 148.5 kB / 483.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.2672, allocations: 326.4 kB / 484 MB, free: 6.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.2689, allocations: 0.9335 MB / 484.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2689, allocations: 2.594 kB / 484.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009227/0.2698, allocations: 0.6434 MB / 485.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.2699, allocations: 46.53 kB / 485.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.2699, allocations: 5.906 kB / 485.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.2699, allocations: 7.25 kB / 485.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004208/0.2703, allocations: 112.8 kB / 485.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2704, allocations: 10.81 kB / 485.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.2706, allocations: 65.59 kB / 485.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.2707, allocations: 21.88 kB / 485.8 MB, free: 5.273 MB / 350.1 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] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002892/0.271, allocations: 279.2 kB / 486.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.092e-05/0.271, allocations: 56.38 kB / 486.2 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007591/0.2718, allocations: 488.7 kB / 486.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.2718, allocations: 6.547 kB / 486.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2718, allocations: 1.25 kB / 486.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.2718, allocations: 0 / 486.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/0.2722, allocations: 467.5 kB / 487.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2723, allocations: 0 / 487.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.2726, allocations: 70.7 kB / 487.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2727, allocations: 5.406 kB / 487.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.2727, allocations: 15.45 kB / 487.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.2727, allocations: 1.062 kB / 487.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2727, allocations: 1.156 kB / 487.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009818/0.2737, allocations: 0.678 MB / 487.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.386e-05/0.2738, allocations: 132.4 kB / 488 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.298e-05/0.2739, allocations: 22.52 kB / 488 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.274, allocations: 20.67 kB / 488 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.073e-05/0.2741, allocations: 22.03 kB / 488.1 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.2742, allocations: 13.56 kB / 488.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003573/0.2745, allocations: 373.5 kB / 488.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2745, allocations: 0 / 488.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004739/0.275, allocations: 119.5 kB / 488.6 MB, free: 3.539 MB / 350.1 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002518/0.2775, allocations: 1.564 MB / 490.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007501/0.2783, allocations: 0.5005 MB / 490.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2783, allocations: 0 / 490.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000299/0.2786, allocations: 250.2 kB / 490.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.2791, allocations: 87.31 kB / 490.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005873/0.285, allocations: 4.856 MB / 495.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.2856, allocations: 0.8781 MB / 496.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002611/0.2858, allocations: 92.2 kB / 496.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002784/0.2861, allocations: 191.4 kB / 497 MB, free: 12.79 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2861, allocations: 4 kB / 497 MB, free: 12.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03865/0.3248, allocations: 10.63 MB / 0.4957 GB, free: 2.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.083/9.408, allocations: 11.55 kB / 0.4957 GB, free: 2.316 MB / 366.1 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)