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 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.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.001854/0.001855, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002729/0.002729, allocations: 193.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.577/3.577, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09983/0.09983, allocations: 10.75 MB / 280.5 MB, free: 10.53 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.002672/0.002673, allocations: 63.91 kB / 340.6 MB, free: 23.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2093, allocations: 49.02 MB / 389.7 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.008924/0.2184, allocations: 2.369 MB / 392 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.2237, allocations: 1.427 MB / 393.5 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008001/0.2247, allocations: 11.88 kB / 393.5 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.226, allocations: 223.1 kB / 393.7 MB, free: 2.117 MB / 286.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.0008006/0.2268, allocations: 159.2 kB / 393.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.2286, allocations: 403.1 kB / 394.2 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.2297, allocations: 0.5936 MB / 394.8 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/0.23, allocations: 77.36 kB / 394.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005122/0.2305, allocations: 219.2 kB / 395.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000537/0.2311, allocations: 247 kB / 395.4 MB, free: 440 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2312, allocations: 32 kB / 395.4 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005431/0.2318, allocations: 151.8 kB / 395.5 MB, free: 256 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002669/0.2321, allocations: 139.6 kB / 395.7 MB, free: 116 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003953/0.2325, allocations: 218.5 kB / 395.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.2338, allocations: 0.5333 MB / 396.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.276e-05/0.2338, allocations: 0 / 396.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.869e-06/0.2338, allocations: 0 / 396.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.2338, allocations: 0 / 396.4 MB, free: 15.36 MB / 302.1 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.002912/0.2368, allocations: 0.8768 MB / 397.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.93e-05/0.2369, allocations: 15.89 kB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.237, allocations: 70.72 kB / 397.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.2373, allocations: 60.19 kB / 397.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.2384, allocations: 438.3 kB / 397.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.2385, allocations: 21.03 kB / 397.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.2386, allocations: 43.92 kB / 397.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.2398, allocations: 444.3 kB / 398.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/0.2398, allocations: 3.906 kB / 398.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.2399, allocations: 16 kB / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.2399, allocations: 8 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.2409, allocations: 314.4 kB / 398.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004947/0.2459, allocations: 1.559 MB / 400.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009505/0.2469, allocations: 247.9 kB / 400.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005527/0.2475, allocations: 149.3 kB / 400.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.416e-05/0.2476, allocations: 4.234 kB / 400.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009267/0.2485, allocations: 251.2 kB / 400.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 8.086e-06/0.2486, allocations: 0 / 400.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002218/0.2508, allocations: 0.552 MB / 401.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/0.251, allocations: 114.8 kB / 401.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.2524, allocations: 0.5097 MB / 402.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/0.2525, allocations: 33.7 kB / 402.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004739/0.253, allocations: 267.9 kB / 402.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.2532, allocations: 114.5 kB / 402.5 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.2535, allocations: 102 kB / 402.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003536/0.2539, allocations: 362.8 kB / 402.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004913/0.2544, allocations: 144.9 kB / 403.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007481/0.2552, allocations: 290.1 kB / 403.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003325/0.2585, allocations: 0.8944 MB / 404.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.2586, allocations: 0 / 404.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001695/0.2603, allocations: 0.6127 MB / 404.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.743e-05/0.2604, allocations: 42.16 kB / 404.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.2605, allocations: 11.94 kB / 404.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.853e-05/0.2605, allocations: 8 kB / 404.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007342/0.2613, allocations: 111.8 kB / 405 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.521e-05/0.2613, allocations: 4 kB / 405 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.2619, allocations: 59.42 kB / 405.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.509e-05/0.2619, allocations: 24 kB / 405.1 MB, free: 6.191 MB / 302.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: 18 * 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 (59): * Single equations (assignments): 58 * 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.0007427/0.2627, allocations: 265.2 kB / 405.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.2628, allocations: 51.34 kB / 405.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/0.2643, allocations: 499.8 kB / 405.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.2643, allocations: 4 kB / 405.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.2643, allocations: 0 / 405.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.2643, allocations: 0 / 405.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000811/0.2651, allocations: 453 kB / 406.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2652, allocations: 0 / 406.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005712/0.2657, allocations: 67.95 kB / 406.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.2658, allocations: 0 / 406.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.2658, allocations: 23.92 kB / 406.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.2659, allocations: 0 / 406.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.2659, allocations: 7.938 kB / 406.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.2675, allocations: 0.6673 MB / 407.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.2678, allocations: 128.4 kB / 407.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.2679, allocations: 19.92 kB / 407.3 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.2682, allocations: 23.98 kB / 407.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.2684, allocations: 19.97 kB / 407.3 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.376e-05/0.2685, allocations: 8 kB / 407.3 MB, free: 3.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001026/0.2695, allocations: 370.8 kB / 407.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.2696, allocations: 0 / 407.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001113/0.2707, allocations: 111.8 kB / 407.8 MB, free: 3.391 MB / 302.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.005007/0.2757, allocations: 1.541 MB / 409.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.2775, allocations: 0.5231 MB / 409.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.2776, allocations: 0 / 409.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006366/0.2782, allocations: 255.2 kB / 410.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009776/0.2792, allocations: 85.81 kB / 410.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/0.2905, allocations: 4.757 MB / 414.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.2914, allocations: 0.8703 MB / 415.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004732/0.2919, allocations: 95.33 kB / 415.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/0.2922, allocations: 179.4 kB / 416.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of SimCode: time 2.134e-06/0.2923, allocations: 0 / 416.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2083/0.5005, allocations: 10.19 MB / 426.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.32/20.82, allocations: 11.81 kB / 426.3 MB, free: 0.7383 MB / 318.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)