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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.005347/0.005347, allocations: 99.34 kB / 15.73 MB, free: 6.008 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: 195.9 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06351/0.06351, allocations: 11.2 MB / 301.7 MB, free: 4.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 58.5 kB / 417.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09475, allocations: 51.98 MB / 469.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003972/0.09875, allocations: 2.461 MB / 471.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002575/0.1014, allocations: 1.431 MB / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.1016, allocations: 15.88 kB / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007727/0.1025, allocations: 215 kB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004318/0.1029, allocations: 163.2 kB / 473.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.104, allocations: 409 kB / 474 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007298/0.1047, allocations: 0.5858 MB / 474.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.1049, allocations: 89.05 kB / 474.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.1053, allocations: 223.1 kB / 474.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.1056, allocations: 231 kB / 475.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.655e-05/0.1057, allocations: 32 kB / 475.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003241/0.106, allocations: 147.8 kB / 475.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.1062, allocations: 131.6 kB / 475.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002265/0.1064, allocations: 206.6 kB / 475.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007446/0.1072, allocations: 0.5486 MB / 476.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1072, allocations: 3.938 kB / 476.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1072, allocations: 0 / 476.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1072, allocations: 0 / 476.2 MB, free: 8.215 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001464/0.1087, allocations: 0.8838 MB / 477.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1088, allocations: 15.89 kB / 477.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.501e-05/0.1089, allocations: 74.66 kB / 477.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.109, allocations: 60.56 kB / 477.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006459/0.1096, allocations: 450.8 kB / 477.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.1097, allocations: 29.02 kB / 477.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.32e-05/0.1097, allocations: 43.89 kB / 477.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007556/0.1105, allocations: 438 kB / 478.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.1105, allocations: 4 kB / 478.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.1106, allocations: 12 kB / 478.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.1106, allocations: 12 kB / 478.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005553/0.1112, allocations: 286 kB / 478.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.1135, allocations: 1.779 MB / 480.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.1141, allocations: 206.6 kB / 480.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.1144, allocations: 120.8 kB / 480.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.1144, allocations: 4 kB / 480.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.1148, allocations: 213.6 kB / 480.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.983e-06/0.1148, allocations: 0 / 480.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009994/0.1158, allocations: 490 kB / 481.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.853e-05/0.1159, allocations: 110.8 kB / 481.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006672/0.1166, allocations: 0.5175 MB / 481.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.1167, allocations: 29.7 kB / 481.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.1169, allocations: 280.3 kB / 482.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/0.117, allocations: 95.22 kB / 482.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.1171, allocations: 81.69 kB / 482.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.1173, allocations: 374.8 kB / 482.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.1176, allocations: 124.5 kB / 482.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.118, allocations: 275.2 kB / 483.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.1197, allocations: 0.7651 MB / 483.9 MB, free: 20 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1197, allocations: 0 / 483.9 MB, free: 20 kB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001001/0.1207, allocations: 0.5336 MB / 484.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.1208, allocations: 37.7 kB / 484.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.1208, allocations: 8 kB / 484.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.1208, allocations: 4 kB / 484.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.1212, allocations: 91.77 kB / 484.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.848e-05/0.1212, allocations: 15.92 kB / 484.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.1215, allocations: 56.02 kB / 484.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.1215, allocations: 24 kB / 484.6 MB, free: 15.23 MB / 366.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: 20 * Number of states: 0 () * Number of discrete variables: 20 ($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.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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.0003316/0.1218, allocations: 239.7 kB / 484.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-05/0.1219, allocations: 51.67 kB / 484.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008317/0.1228, allocations: 436.2 kB / 485.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.1228, allocations: 11.92 kB / 485.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1228, allocations: 0 / 485.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1228, allocations: 0 / 485.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.1233, allocations: 425.2 kB / 485.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1233, allocations: 0 / 485.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002644/0.1236, allocations: 51.91 kB / 485.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.1236, allocations: 4 kB / 485.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.1236, allocations: 8 kB / 485.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.493e-06/0.1237, allocations: 7.938 kB / 485.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1237, allocations: 0 / 485.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.1247, allocations: 0.5884 MB / 486.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.1248, allocations: 120.7 kB / 486.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.1249, allocations: 24.17 kB / 486.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.1251, allocations: 23.86 kB / 486.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.508e-05/0.1252, allocations: 15.98 kB / 486.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.1252, allocations: 15.98 kB / 486.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004421/0.1256, allocations: 354.8 kB / 487 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1256, allocations: 0 / 487 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004494/0.1261, allocations: 115.8 kB / 487.1 MB, free: 12.66 MB / 366.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.002858/0.129, allocations: 1.478 MB / 488.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008138/0.1298, allocations: 424.2 kB / 489 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1298, allocations: 0 / 489 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.1302, allocations: 227.2 kB / 489.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.1307, allocations: 83.42 kB / 489.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006048/0.1367, allocations: 4.304 MB / 493.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.1373, allocations: 0.8582 MB / 494.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002411/0.1375, allocations: 83.17 kB / 494.5 MB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.1378, allocations: 175.4 kB / 494.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1378, allocations: 0 / 494.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03661/0.1744, allocations: 9.673 MB / 0.4925 GB, free: 11.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.127/9.302, allocations: 11.39 kB / 0.4926 GB, free: 11.43 MB / 382.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)