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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005706/0.005706, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001538/0.001538, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1704/0.1704, allocations: 11.18 MB / 301.7 MB, free: 1.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.91 kB / 417.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2571, allocations: 51.98 MB / 469.3 MB, free: 16.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003616/0.2607, allocations: 2.454 MB / 471.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.2632, allocations: 1.533 MB / 473.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.2634, allocations: 19.22 kB / 473.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000732/0.2642, allocations: 217.7 kB / 473.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003695/0.2645, allocations: 168.2 kB / 473.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.2656, allocations: 454.7 kB / 474.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006237/0.2662, allocations: 0.6099 MB / 474.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.2664, allocations: 87.28 kB / 474.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.2666, allocations: 228.2 kB / 475.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.2669, allocations: 250.2 kB / 475.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.465e-05/0.267, allocations: 31.62 kB / 475.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.2673, allocations: 158.6 kB / 475.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.2674, allocations: 143.5 kB / 475.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.2676, allocations: 216 kB / 475.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.2681, allocations: 0.5443 MB / 476.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2681, allocations: 5.094 kB / 476.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2681, allocations: 0 / 476.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2682, allocations: 0 / 476.4 MB, free: 12.1 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001289/0.2695, allocations: 0.8991 MB / 477.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2695, allocations: 14.08 kB / 477.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.511e-05/0.2696, allocations: 74.97 kB / 477.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.2697, allocations: 61.16 kB / 477.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/0.2702, allocations: 463.7 kB / 477.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.322e-05/0.2703, allocations: 84.73 kB / 478 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.2704, allocations: 39.45 kB / 478 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.271, allocations: 461.3 kB / 478.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.271, allocations: 1.531 kB / 478.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.2711, allocations: 13.22 kB / 478.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.2711, allocations: 8.125 kB / 478.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.2716, allocations: 293.1 kB / 478.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.2736, allocations: 1.848 MB / 480.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000549/0.2742, allocations: 205.2 kB / 480.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.2744, allocations: 129.3 kB / 481 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.2745, allocations: 2.25 kB / 481 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003843/0.2749, allocations: 217 kB / 481.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.824e-06/0.2749, allocations: 0 / 481.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009986/0.2759, allocations: 0.4884 MB / 481.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.276, allocations: 115.1 kB / 481.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005697/0.2765, allocations: 0.5114 MB / 482.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.2766, allocations: 33.17 kB / 482.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.2767, allocations: 274.3 kB / 482.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.2768, allocations: 92.45 kB / 482.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.2769, allocations: 92.05 kB / 482.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.277, allocations: 364.2 kB / 483.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.2773, allocations: 124.8 kB / 483.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.2776, allocations: 288.6 kB / 483.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.279, allocations: 0.7842 MB / 484.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.279, allocations: 2.562 kB / 484.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008197/0.2799, allocations: 0.5516 MB / 484.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.2799, allocations: 38.56 kB / 484.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2799, allocations: 4.281 kB / 484.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.28, allocations: 6.812 kB / 484.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005817/0.2805, allocations: 108.7 kB / 485 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/0.2806, allocations: 10.78 kB / 485 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.2808, allocations: 58.69 kB / 485.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.2808, allocations: 24.31 kB / 485.1 MB, free: 5.582 MB / 350.1 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] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (51): * Single equations (assignments): 50 * 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.0002623/0.2811, allocations: 255.8 kB / 485.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.658e-05/0.2812, allocations: 51.23 kB / 485.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007408/0.2819, allocations: 442.2 kB / 485.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.2819, allocations: 2.688 kB / 485.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2819, allocations: 0 / 485.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/0.282, allocations: 13.08 kB / 485.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.2824, allocations: 447.4 kB / 486.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2824, allocations: 0 / 486.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.283, allocations: 61.45 kB / 486.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.283, allocations: 1.375 kB / 486.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/0.283, allocations: 9.5 kB / 486.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.283, allocations: 5.359 kB / 486.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2831, allocations: 0 / 486.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008892/0.2839, allocations: 0.6082 MB / 487 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.964e-05/0.284, allocations: 127.8 kB / 487.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.286e-05/0.2841, allocations: 8.875 kB / 487.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.2843, allocations: 12.42 kB / 487.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.942e-05/0.2843, allocations: 27.78 kB / 487.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.2844, allocations: 12 kB / 487.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000347/0.2847, allocations: 356.4 kB / 487.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2847, allocations: 5.438 kB / 487.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004297/0.2852, allocations: 114.8 kB / 487.6 MB, free: 3.949 MB / 350.1 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.002521/0.2877, allocations: 1.488 MB / 489.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007027/0.2884, allocations: 432.8 kB / 489.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2884, allocations: 1.188 kB / 489.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.2887, allocations: 232.2 kB / 489.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.2892, allocations: 93.53 kB / 489.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/0.2943, allocations: 4.397 MB / 494.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005805/0.2949, allocations: 0.8697 MB / 495.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002421/0.2952, allocations: 75.25 kB / 495.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.2955, allocations: 171.4 kB / 495.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2955, allocations: 0 / 495.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.3313, allocations: 9.787 MB / 0.4933 GB, free: 4.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.992/9.323, allocations: 0 / 0.4933 GB, free: 4.742 MB / 366.1 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)