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 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) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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.005283/0.005283, allocations: 100.5 kB / 15.73 MB, free: 6.016 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.001198/0.001198, allocations: 192.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 222.6 MB, free: 4.363 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05868/0.05868, allocations: 10.73 MB / 280.7 MB, free: 10.25 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0015/0.001501, allocations: 71.09 kB / 390.4 MB, free: 5.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 49.01 MB / 439.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003076/0.2467, allocations: 2.353 MB / 441.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.2486, allocations: 1.423 MB / 443.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.2488, allocations: 15.19 kB / 443.2 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006444/0.2494, allocations: 208.4 kB / 443.4 MB, free: 2.359 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003595/0.2498, allocations: 166.9 kB / 443.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000869/0.2507, allocations: 393.2 kB / 443.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000612/0.2513, allocations: 0.5769 MB / 444.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.2515, allocations: 84.44 kB / 444.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.2517, allocations: 221.9 kB / 444.8 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002941/0.252, allocations: 235.4 kB / 445 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.08e-05/0.2521, allocations: 29.31 kB / 445 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.2524, allocations: 155.1 kB / 445.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.2525, allocations: 121.1 kB / 445.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.2527, allocations: 206.7 kB / 445.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.2534, allocations: 0.5219 MB / 446 MB, free: 1.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.2534, allocations: 1.719 kB / 446 MB, free: 1.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2534, allocations: 0 / 446 MB, free: 1.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.2534, allocations: 0 / 446 MB, free: 1.145 MB / 318.1 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.001286/0.2547, allocations: 0.8653 MB / 446.9 MB, free: 464 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2548, allocations: 13.72 kB / 446.9 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.685e-05/0.2548, allocations: 69.25 kB / 447 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.933e-05/0.2549, allocations: 58.62 kB / 447 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005623/0.2555, allocations: 430.6 kB / 447.5 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-05/0.2556, allocations: 79.06 kB / 447.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.747e-05/0.2557, allocations: 33.06 kB / 447.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006753/0.2563, allocations: 402.7 kB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.2564, allocations: 1.281 kB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.2564, allocations: 11.53 kB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2564, allocations: 7.312 kB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005185/0.257, allocations: 270 kB / 448.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.2591, allocations: 1.457 MB / 449.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004705/0.2596, allocations: 201.1 kB / 449.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.2598, allocations: 129.8 kB / 450 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.2599, allocations: 6.828 kB / 450 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003643/0.2603, allocations: 227.8 kB / 450.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.813e-06/0.2603, allocations: 0 / 450.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008687/0.2611, allocations: 487.4 kB / 450.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.2612, allocations: 112.3 kB / 450.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004887/0.2617, allocations: 494.7 kB / 451.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.2618, allocations: 32.45 kB / 451.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.2619, allocations: 252 kB / 451.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.262, allocations: 99.52 kB / 451.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.2621, allocations: 75.02 kB / 451.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2623, allocations: 364.2 kB / 452.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.2625, allocations: 120.8 kB / 452.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003144/0.2629, allocations: 237.3 kB / 452.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.2644, allocations: 0.7393 MB / 453.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2644, allocations: 1.656 kB / 453.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008236/0.2653, allocations: 0.5112 MB / 453.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.2653, allocations: 37.84 kB / 453.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.2653, allocations: 3.906 kB / 453.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.2654, allocations: 9.406 kB / 453.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005963/0.266, allocations: 91.3 kB / 453.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.266, allocations: 12.44 kB / 453.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.2662, allocations: 48.53 kB / 453.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.2663, allocations: 17.8 kB / 453.9 MB, free: 11.48 MB / 334.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: 14 * Number of states: 0 () * Number of discrete variables: 16 ($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.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002878/0.2665, allocations: 243.7 kB / 454.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.056e-05/0.2666, allocations: 49.47 kB / 454.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007786/0.2674, allocations: 436.9 kB / 454.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2674, allocations: 6.594 kB / 454.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2674, allocations: 0 / 454.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2675, allocations: 1.062 kB / 454.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.2679, allocations: 428.2 kB / 455.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.2679, allocations: 7.984 kB / 455.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006184/0.2685, allocations: 66.31 kB / 455.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.2685, allocations: 5.109 kB / 455.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.2686, allocations: 12.94 kB / 455.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.2686, allocations: 5.281 kB / 455.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2686, allocations: 1.188 kB / 455.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.2696, allocations: 0.6061 MB / 455.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.2697, allocations: 122.8 kB / 455.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.072e-05/0.2698, allocations: 13.36 kB / 455.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.27, allocations: 15.45 kB / 455.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.27, allocations: 16.92 kB / 455.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.2701, allocations: 16.55 kB / 456 MB, free: 10.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003665/0.2705, allocations: 336.8 kB / 456.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2705, allocations: 0 / 456.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004301/0.2709, allocations: 112.8 kB / 456.4 MB, free: 9.879 MB / 334.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.002184/0.2731, allocations: 1.491 MB / 457.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006822/0.2738, allocations: 420 kB / 458.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2738, allocations: 0 / 458.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.2741, allocations: 226.6 kB / 458.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.2746, allocations: 74.75 kB / 458.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0051/0.2797, allocations: 4.17 MB / 462.8 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.2801, allocations: 0.8497 MB / 463.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002133/0.2803, allocations: 71.17 kB / 463.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.2806, allocations: 159.4 kB / 463.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2806, allocations: 4 kB / 463.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.31, allocations: 9.47 MB / 473.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.336/8.646, allocations: 7.953 kB / 473.3 MB, free: 10.41 MB / 350.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)