Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_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.007973/0.007972, allocations: 98.8 kB / 15.73 MB, free: 6.047 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.001848/0.001848, allocations: 194 kB / 16.67 MB, free: 5.969 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.355/1.355, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0582/0.0582, allocations: 10.75 MB / 280.7 MB, free: 10.42 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.001382/0.001382, allocations: 63.91 kB / 390.3 MB, free: 5.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2391, allocations: 49.03 MB / 439.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003203/0.2423, allocations: 2.346 MB / 441.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.2442, allocations: 1.322 MB / 443 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001932/0.2445, allocations: 13.38 kB / 443 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006301/0.2451, allocations: 212.8 kB / 443.3 MB, free: 2.262 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.0003726/0.2455, allocations: 166.8 kB / 443.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008048/0.2463, allocations: 347.8 kB / 443.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005612/0.2469, allocations: 0.5492 MB / 444.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.2471, allocations: 86.95 kB / 444.4 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2473, allocations: 208.9 kB / 444.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.2476, allocations: 218.4 kB / 444.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.658e-05/0.2477, allocations: 28.19 kB / 444.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.2479, allocations: 152.5 kB / 445 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2481, allocations: 123 kB / 445.1 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.2482, allocations: 197.1 kB / 445.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006007/0.2488, allocations: 0.5017 MB / 445.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2489, allocations: 3.938 kB / 445.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2489, allocations: 0 / 445.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.2489, allocations: 1.188 kB / 445.8 MB, free: 1.098 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.001134/0.25, allocations: 0.8525 MB / 446.7 MB, free: 416 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2501, allocations: 14.64 kB / 446.7 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.2501, allocations: 71.89 kB / 446.7 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.162e-05/0.2502, allocations: 58.28 kB / 446.8 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005465/0.2508, allocations: 425.5 kB / 447.2 MB, free: 16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.2508, allocations: 20.84 kB / 447.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.2509, allocations: 41.09 kB / 447.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.2516, allocations: 381.1 kB / 447.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2516, allocations: 1.219 kB / 447.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.2516, allocations: 12.2 kB / 447.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.2517, allocations: 7.812 kB / 447.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004858/0.2521, allocations: 253 kB / 447.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.2541, allocations: 1.39 MB / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005175/0.2546, allocations: 203 kB / 449.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.2548, allocations: 124.9 kB / 449.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.2549, allocations: 11.34 kB / 449.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.2552, allocations: 225.1 kB / 449.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.084e-06/0.2553, allocations: 0 / 449.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009134/0.2562, allocations: 478.2 kB / 450.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.2563, allocations: 110.1 kB / 450.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005421/0.2568, allocations: 495.9 kB / 450.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.2568, allocations: 34.98 kB / 450.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.257, allocations: 257.3 kB / 451.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.704e-05/0.2571, allocations: 90.22 kB / 451.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.2572, allocations: 78.64 kB / 451.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2574, allocations: 363.2 kB / 451.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.2576, allocations: 106.2 kB / 451.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.2579, allocations: 226.7 kB / 452 MB, free: 12.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.2595, allocations: 0.7168 MB / 452.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2595, allocations: 0 / 452.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000813/0.2603, allocations: 0.494 MB / 453.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.348e-05/0.2604, allocations: 42.94 kB / 453.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.2604, allocations: 11.19 kB / 453.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2604, allocations: 5.406 kB / 453.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.2607, allocations: 74.7 kB / 453.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.2607, allocations: 8.562 kB / 453.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.261, allocations: 49.19 kB / 453.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.261, allocations: 12.59 kB / 453.5 MB, free: 11.68 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 (44): * Single equations (assignments): 43 * 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.0003619/0.2614, allocations: 242.9 kB / 453.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.933e-05/0.2615, allocations: 58.88 kB / 453.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007647/0.2622, allocations: 434.7 kB / 454.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.2623, allocations: 3.344 kB / 454.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2623, allocations: 4 kB / 454.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2623, allocations: 0 / 454.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004179/0.2627, allocations: 412.1 kB / 454.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2627, allocations: 1.281 kB / 454.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/0.263, allocations: 52.44 kB / 454.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.263, allocations: 5 kB / 454.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.2631, allocations: 13.61 kB / 454.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2631, allocations: 1.188 kB / 454.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2631, allocations: 0 / 454.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009485/0.264, allocations: 0.584 MB / 455.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.2642, allocations: 134.6 kB / 455.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.565e-05/0.2642, allocations: 8.625 kB / 455.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.2644, allocations: 17.11 kB / 455.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.058e-05/0.2645, allocations: 19.56 kB / 455.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.2645, allocations: 9.344 kB / 455.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003725/0.2649, allocations: 345 kB / 455.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2649, allocations: 0 / 455.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004395/0.2653, allocations: 110.2 kB / 455.9 MB, free: 10.11 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (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 (25): * Single equations (assignments): 22 * 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.002132/0.2675, allocations: 1.476 MB / 457.3 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006583/0.2681, allocations: 406.2 kB / 457.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2682, allocations: 1.031 kB / 457.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003001/0.2685, allocations: 222.6 kB / 458 MB, free: 8.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.2689, allocations: 80.3 kB / 458 MB, free: 8.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005311/0.2742, allocations: 4.078 MB / 462.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.2747, allocations: 0.8458 MB / 463 MB, free: 4.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002242/0.2749, allocations: 75.22 kB / 463 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/0.2752, allocations: 163.4 kB / 463.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2752, allocations: 0 / 463.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.3031, allocations: 9.333 MB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.461/8.764, allocations: 11.88 kB / 472.5 MB, free: 11.08 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)