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.002281/0.002281, 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.002227/0.002227, allocations: 192.6 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.245/3.245, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1092/0.1092, allocations: 10.74 MB / 280.5 MB, free: 10.51 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.003204/0.003204, allocations: 59.91 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2567, allocations: 49.02 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00806/0.2649, allocations: 2.365 MB / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004521/0.2735, allocations: 1.322 MB / 393.3 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007049/0.2743, allocations: 15.88 kB / 393.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.2759, allocations: 211 kB / 393.6 MB, free: 2.207 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.0009093/0.2768, allocations: 155.3 kB / 393.7 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00173/0.2786, allocations: 355.1 kB / 394.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.2799, allocations: 0.5459 MB / 394.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.2804, allocations: 81.34 kB / 394.7 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006358/0.281, allocations: 195.2 kB / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006269/0.2817, allocations: 215.1 kB / 395.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001776/0.2819, allocations: 28 kB / 395.1 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005794/0.2824, allocations: 147.8 kB / 395.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003036/0.2828, allocations: 127.6 kB / 395.4 MB, free: 384 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004833/0.2833, allocations: 198.7 kB / 395.6 MB, free: 184 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.2846, allocations: 498.4 kB / 396.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.2846, allocations: 3.984 kB / 396.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2846, allocations: 4 kB / 396.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.153e-05/0.2847, allocations: 0 / 396.1 MB, free: 15.68 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00282/0.2875, allocations: 0.8259 MB / 396.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.08e-05/0.2876, allocations: 15.89 kB / 396.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.2877, allocations: 66.72 kB / 397 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.2881, allocations: 56.28 kB / 397 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.2893, allocations: 406.4 kB / 397.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.783e-05/0.2894, allocations: 20.94 kB / 397.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.2895, allocations: 39.84 kB / 397.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.2908, allocations: 383.6 kB / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.2908, allocations: 0 / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.158e-05/0.2909, allocations: 15.98 kB / 397.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.2909, allocations: 8 kB / 397.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.292, allocations: 254 kB / 398.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003673/0.2957, allocations: 1.395 MB / 399.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009174/0.2967, allocations: 202.5 kB / 399.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004072/0.2971, allocations: 124.8 kB / 399.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-05/0.2972, allocations: 7.984 kB / 399.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007894/0.298, allocations: 214.9 kB / 400.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 8.386e-06/0.298, allocations: 0 / 400.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001787/0.2999, allocations: 485 kB / 400.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.3, allocations: 110.8 kB / 400.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.3011, allocations: 485.8 kB / 401.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.3012, allocations: 33.7 kB / 401.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.3016, allocations: 260.1 kB / 401.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.3017, allocations: 90.73 kB / 401.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.302, allocations: 77.59 kB / 401.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002726/0.3022, allocations: 362.8 kB / 401.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.3026, allocations: 108.4 kB / 402 MB, free: 9.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004997/0.3031, allocations: 232 kB / 402.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002652/0.3058, allocations: 0.7209 MB / 403 MB, free: 8.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.3058, allocations: 0 / 403 MB, free: 8.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00154/0.3074, allocations: 0.4945 MB / 403.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.381e-05/0.3075, allocations: 44.5 kB / 403.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/0.3075, allocations: 4 kB / 403.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.505e-05/0.3076, allocations: 7.938 kB / 403.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005037/0.3081, allocations: 75.89 kB / 403.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.583e-05/0.3081, allocations: 4 kB / 403.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/0.3086, allocations: 47.58 kB / 403.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.682e-05/0.3087, allocations: 16 kB / 403.7 MB, free: 7.633 MB / 302.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.004898/0.3136, allocations: 248.3 kB / 403.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.3138, allocations: 51.38 kB / 404 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.3154, allocations: 443.8 kB / 404.4 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.3155, allocations: 4 kB / 404.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.3155, allocations: 0 / 404.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3155, allocations: 0 / 404.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000944/0.3165, allocations: 409.2 kB / 404.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3165, allocations: 0 / 404.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005/0.317, allocations: 55.84 kB / 404.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.317, allocations: 0 / 404.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/0.3171, allocations: 11.98 kB / 404.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.306e-06/0.3171, allocations: 7.938 kB / 404.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3171, allocations: 4 kB / 404.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.3188, allocations: 0.581 MB / 405.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.3191, allocations: 128.5 kB / 405.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3192, allocations: 8 kB / 405.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002675/0.3195, allocations: 20.11 kB / 405.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3197, allocations: 31.91 kB / 405.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.459e-05/0.3197, allocations: 8 kB / 405.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007396/0.3205, allocations: 343 kB / 406 MB, free: 5.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3205, allocations: 0 / 406 MB, free: 5.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008854/0.3214, allocations: 107.8 kB / 406.1 MB, free: 5.09 MB / 302.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.004041/0.3254, allocations: 1.454 MB / 407.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.3269, allocations: 431.3 kB / 408 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.327, allocations: 0.8125 kB / 408 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.3275, allocations: 235.1 kB / 408.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008896/0.3285, allocations: 77.88 kB / 408.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.3387, allocations: 4.114 MB / 412.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008944/0.3397, allocations: 0.8458 MB / 413.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005146/0.3402, allocations: 75.22 kB / 413.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004505/0.3407, allocations: 159.4 kB / 413.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of SimCode: time 2.134e-06/0.3408, allocations: 0 / 413.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/0.465, allocations: 9.166 MB / 422.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.4/19.86, allocations: 19.31 kB / 422.7 MB, free: 4.395 MB / 318.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)