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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 110.1 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 214 kB / 22.13 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.5 MB / 255.8 MB, free: 8.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06735/0.06735, allocations: 11.36 MB / 323.5 MB, free: 8.328 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 69.61 kB / 450.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1222, allocations: 56.06 MB / 0.4949 GB, free: 2.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.005128/0.1274, allocations: 2.485 MB / 0.4973 GB, free: 48 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003645/0.131, allocations: 1.707 MB / 0.499 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.1313, allocations: 19.81 kB / 0.499 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008614/0.1321, allocations: 231 kB / 0.4992 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005511/0.1327, allocations: 207 kB / 0.4994 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.1339, allocations: 442.5 kB / 0.4998 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009935/0.1349, allocations: 0.6607 MB / 0.5005 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.1351, allocations: 61.5 kB / 0.5005 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.1355, allocations: 243.1 kB / 0.5008 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.1359, allocations: 266.8 kB / 0.501 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-05/0.1359, allocations: 36 kB / 0.501 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.1362, allocations: 155.9 kB / 0.5012 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.1364, allocations: 163.4 kB / 0.5014 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002586/0.1367, allocations: 222.5 kB / 0.5016 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007795/0.1375, allocations: 0.5912 MB / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1375, allocations: 0 / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1375, allocations: 0 / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1375, allocations: 0 / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001634/0.1391, allocations: 0.8555 MB / 0.503 GB, free: 10.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1391, allocations: 15.97 kB / 0.503 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.1392, allocations: 70.72 kB / 0.5031 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.1394, allocations: 64.52 kB / 0.5031 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007001/0.1401, allocations: 411.8 kB / 0.5035 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.1401, allocations: 29.38 kB / 0.5035 GB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.493e-05/0.1402, allocations: 43.94 kB / 0.5036 GB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009726/0.1412, allocations: 0.5269 MB / 0.5041 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.1412, allocations: 15.95 kB / 0.5041 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.1412, allocations: 15.94 kB / 0.5041 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1412, allocations: 8 kB / 0.5041 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006412/0.1419, allocations: 356 kB / 0.5045 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/0.1447, allocations: 1.881 MB / 0.5063 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005045/0.1452, allocations: 267.7 kB / 0.5066 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.1454, allocations: 162.7 kB / 0.5067 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1455, allocations: 4.234 kB / 0.5067 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/0.146, allocations: 281.7 kB / 0.507 GB, free: 5.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.146, allocations: 0 / 0.507 GB, free: 5.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001158/0.1471, allocations: 0.6214 MB / 0.5076 GB, free: 5.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/0.1472, allocations: 106.8 kB / 0.5077 GB, free: 5.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006718/0.1479, allocations: 0.5534 MB / 0.5082 GB, free: 4.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.1479, allocations: 33.7 kB / 0.5083 GB, free: 4.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.1482, allocations: 292.3 kB / 0.5086 GB, free: 4.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.1483, allocations: 130.9 kB / 0.5087 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.1484, allocations: 106.1 kB / 0.5088 GB, free: 3.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.1487, allocations: 370.8 kB / 0.5091 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.149, allocations: 182.7 kB / 0.5093 GB, free: 3.363 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/0.1495, allocations: 395.2 kB / 0.5097 GB, free: 2.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001949/0.1514, allocations: 0.9409 MB / 0.5106 GB, free: 1.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1514, allocations: 0 / 0.5106 GB, free: 1.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001118/0.1525, allocations: 0.6849 MB / 0.5113 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.1526, allocations: 41.69 kB / 0.5113 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.1526, allocations: 8 kB / 0.5113 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.1526, allocations: 8 kB / 0.5113 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.1531, allocations: 107.8 kB / 0.5114 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.1531, allocations: 8 kB / 0.5114 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.1533, allocations: 71.86 kB / 0.5115 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.1534, allocations: 27.94 kB / 0.5115 GB, free: 0.875 MB / 382.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: 22 * 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 (63): * Single equations (assignments): 62 * 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.0003946/0.1538, allocations: 282.8 kB / 0.5118 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/0.1539, allocations: 59.62 kB / 0.5119 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2215/0.3754, allocations: 0.5176 MB / 0.5124 GB, free: 23.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.3754, allocations: 2.656 kB / 0.5124 GB, free: 23.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.3754, allocations: 0 / 0.5124 GB, free: 23.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.3754, allocations: 1.359 kB / 0.5124 GB, free: 23.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007509/0.3762, allocations: 437.2 kB / 0.5128 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3762, allocations: 1.156 kB / 0.5128 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004548/0.3767, allocations: 68.47 kB / 0.5129 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3767, allocations: 0.5312 kB / 0.5129 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.3767, allocations: 18.92 kB / 0.5129 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3767, allocations: 0.9688 kB / 0.5129 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3767, allocations: 3.391 kB / 0.5129 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.3778, allocations: 0.7302 MB / 0.5136 GB, free: 23.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.801e-05/0.3779, allocations: 61.17 kB / 0.5136 GB, free: 23.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.373e-05/0.378, allocations: 13.41 kB / 0.5137 GB, free: 23.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.3781, allocations: 17.39 kB / 0.5137 GB, free: 23.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.208e-05/0.3782, allocations: 24.38 kB / 0.5137 GB, free: 23.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.3783, allocations: 16.36 kB / 0.5137 GB, free: 23.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003762/0.3786, allocations: 383.3 kB / 0.5141 GB, free: 22.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3786, allocations: 0 / 0.5141 GB, free: 22.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004986/0.3791, allocations: 123.5 kB / 0.5142 GB, free: 22.98 MB / 382.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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * 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.002659/0.3818, allocations: 1.646 MB / 0.5158 GB, free: 22.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000765/0.3826, allocations: 0.5115 MB / 0.5163 GB, free: 22.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3826, allocations: 2.344 kB / 0.5163 GB, free: 22.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000316/0.3829, allocations: 254.9 kB / 0.5166 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004421/0.3833, allocations: 87.92 kB / 0.5166 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005349/0.3887, allocations: 5.04 MB / 0.5216 GB, free: 19.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.3889, allocations: 279.3 kB / 0.5218 GB, free: 19.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.3892, allocations: 100.9 kB / 0.5219 GB, free: 19.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.3894, allocations: 189.5 kB / 0.5221 GB, free: 19.77 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3894, allocations: 1.375 kB / 0.5221 GB, free: 19.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06661/0.456, allocations: 11.22 MB / 0.5331 GB, free: 16.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.8, allocations: 11.84 kB / 0.5331 GB, free: 16.93 MB / 382.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.632239492144436] Failed to read output from testmodel.py, exit status != 0: 12.968844059854746 12.980277464 12.840521599 Calling exit ...