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.006396/0.006396, allocations: 99.53 kB / 15.73 MB, free: 6.02 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.001333/0.001333, allocations: 190.4 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.674/1.674, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06441/0.06441, allocations: 10.74 MB / 280.7 MB, free: 10.38 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.002928/0.002928, allocations: 66.72 kB / 390.4 MB, free: 5.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3026, allocations: 49.02 MB / 439.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003583/0.3062, allocations: 2.353 MB / 441.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.3084, allocations: 1.323 MB / 443 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.3086, allocations: 13.38 kB / 443.1 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007473/0.3093, allocations: 215.5 kB / 443.3 MB, free: 2.418 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.0003886/0.3097, allocations: 171.3 kB / 443.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009147/0.3106, allocations: 354.7 kB / 443.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006217/0.3113, allocations: 0.5294 MB / 444.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.3114, allocations: 64.25 kB / 444.4 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.3117, allocations: 203.7 kB / 444.6 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002746/0.3119, allocations: 219 kB / 444.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.849e-05/0.312, allocations: 28.53 kB / 444.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002721/0.3123, allocations: 143.7 kB / 445 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.3124, allocations: 138.7 kB / 445.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.3126, allocations: 184.5 kB / 445.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006486/0.3132, allocations: 0.5045 MB / 445.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3132, allocations: 6.062 kB / 445.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3132, allocations: 0 / 445.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.3132, allocations: 0 / 445.8 MB, free: 1.266 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.001368/0.3146, allocations: 0.8494 MB / 446.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3146, allocations: 12.86 kB / 446.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.649e-05/0.3147, allocations: 72.53 kB / 446.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.3148, allocations: 59.97 kB / 446.8 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.3154, allocations: 428.1 kB / 447.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.3154, allocations: 20.59 kB / 447.2 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.822e-05/0.3155, allocations: 40.77 kB / 447.2 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.3162, allocations: 377.2 kB / 447.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.3162, allocations: 2.875 kB / 447.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.3162, allocations: 15.62 kB / 447.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.3163, allocations: 6.781 kB / 447.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.3168, allocations: 264.4 kB / 447.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.3189, allocations: 1.378 MB / 449.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.3194, allocations: 190.5 kB / 449.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.3196, allocations: 112 kB / 449.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.3197, allocations: 7.453 kB / 449.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003866/0.3201, allocations: 223.6 kB / 449.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.3201, allocations: 4 kB / 449.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001027/0.3211, allocations: 486.5 kB / 450.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.223e-05/0.3212, allocations: 107.1 kB / 450.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.3218, allocations: 491.4 kB / 450.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.3218, allocations: 31.83 kB / 450.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.322, allocations: 257.8 kB / 451.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.3221, allocations: 98.2 kB / 451.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.3222, allocations: 81.27 kB / 451.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.3224, allocations: 360.5 kB / 451.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.3227, allocations: 112.9 kB / 451.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.3231, allocations: 230.6 kB / 452 MB, free: 12.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.3247, allocations: 0.7053 MB / 452.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3247, allocations: 0 / 452.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009517/0.3256, allocations: 0.502 MB / 453.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/0.3257, allocations: 38 kB / 453.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3257, allocations: 3.594 kB / 453.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.3257, allocations: 4.656 kB / 453.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/0.3261, allocations: 75.19 kB / 453.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.844e-05/0.3261, allocations: 12.95 kB / 453.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.3263, allocations: 53.3 kB / 453.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.3264, allocations: 16.81 kB / 453.4 MB, free: 11.83 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.000384/0.3267, allocations: 234.9 kB / 453.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.889e-05/0.3268, allocations: 54.39 kB / 453.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.328, allocations: 436 kB / 454.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.328, allocations: 3.344 kB / 454.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.328, allocations: 0 / 454.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.328, allocations: 3.984 kB / 454.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/0.3285, allocations: 416.6 kB / 454.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3285, allocations: 0 / 454.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.3288, allocations: 48.78 kB / 454.6 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3288, allocations: 5.312 kB / 454.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.3288, allocations: 10.31 kB / 454.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3288, allocations: 1.062 kB / 454.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3288, allocations: 3.938 kB / 454.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.3299, allocations: 0.5926 MB / 455.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.33, allocations: 125.7 kB / 455.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.53e-05/0.3301, allocations: 25.7 kB / 455.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.3303, allocations: 15.98 kB / 455.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.3304, allocations: 17.2 kB / 455.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.3304, allocations: 16.14 kB / 455.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004895/0.3309, allocations: 338 kB / 455.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3309, allocations: 0 / 455.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005061/0.3314, allocations: 106.8 kB / 455.8 MB, free: 10.26 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.003006/0.3344, allocations: 1.469 MB / 457.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007226/0.3351, allocations: 373.8 kB / 457.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3351, allocations: 1.469 kB / 457.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000369/0.3355, allocations: 193 kB / 457.9 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004602/0.336, allocations: 79.52 kB / 457.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007215/0.3432, allocations: 4.079 MB / 462 MB, free: 5.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006157/0.3438, allocations: 0.8458 MB / 462.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.3441, allocations: 75.22 kB / 462.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.3443, allocations: 155.4 kB / 463.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3443, allocations: 0 / 463.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03926/0.3836, allocations: 9.342 MB / 472.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.888/9.272, allocations: 7.922 kB / 472.4 MB, free: 11.34 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)