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.001417/0.001417, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001575/0.001575, allocations: 220.2 kB / 22.26 MB, free: 5.125 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06525/0.06525, allocations: 11.35 MB / 323.8 MB, free: 8.227 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/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.002044/0.002044, allocations: 63.91 kB / 451 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1181, allocations: 56.07 MB / 0.4952 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.005329/0.1235, allocations: 2.493 MB / 0.4977 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003648/0.1271, allocations: 1.707 MB / 0.4993 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005009/0.1276, allocations: 27.75 kB / 0.4993 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.1286, allocations: 226 kB / 0.4996 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000674/0.1293, allocations: 215 kB / 0.4998 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.1305, allocations: 427 kB / 0.5002 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.1316, allocations: 0.6685 MB / 0.5008 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.1318, allocations: 61.52 kB / 0.5009 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004839/0.1323, allocations: 247.1 kB / 0.5011 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005036/0.1328, allocations: 262.8 kB / 0.5014 GB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.1329, allocations: 40 kB / 0.5014 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000343/0.1332, allocations: 159.9 kB / 0.5016 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.1334, allocations: 151.5 kB / 0.5017 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.1337, allocations: 230.5 kB / 0.5019 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008846/0.1346, allocations: 0.5834 MB / 0.5025 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1346, allocations: 0 / 0.5025 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.749e-06/0.1346, allocations: 4 kB / 0.5025 GB, free: 10.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.1346, allocations: 0 / 0.5025 GB, free: 10.84 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.001806/0.1364, allocations: 0.8555 MB / 0.5033 GB, free: 9.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1365, allocations: 8.031 kB / 0.5033 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.1366, allocations: 78.66 kB / 0.5034 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.1367, allocations: 64.52 kB / 0.5035 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007979/0.1375, allocations: 407.8 kB / 0.5039 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.1376, allocations: 37.36 kB / 0.5039 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.1376, allocations: 39.94 kB / 0.5039 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008206/0.1384, allocations: 484.2 kB / 0.5044 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.372e-05/0.1385, allocations: 7.953 kB / 0.5044 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.1385, allocations: 16 kB / 0.5044 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1385, allocations: 8 kB / 0.5044 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006534/0.1392, allocations: 326.3 kB / 0.5047 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.1421, allocations: 1.889 MB / 0.5066 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.1426, allocations: 226.9 kB / 0.5068 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.1428, allocations: 133 kB / 0.5069 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.1429, allocations: 4.234 kB / 0.5069 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.1433, allocations: 256 kB / 0.5072 GB, free: 5.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 3.166e-06/0.1433, allocations: 0 / 0.5072 GB, free: 5.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001159/0.1445, allocations: 0.5517 MB / 0.5077 GB, free: 5.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.077e-05/0.1446, allocations: 110.8 kB / 0.5078 GB, free: 5.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007393/0.1453, allocations: 0.5534 MB / 0.5084 GB, free: 4.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.1453, allocations: 33.69 kB / 0.5084 GB, free: 4.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.1456, allocations: 296.2 kB / 0.5087 GB, free: 4.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.1457, allocations: 119 kB / 0.5088 GB, free: 4.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.1459, allocations: 110.1 kB / 0.5089 GB, free: 3.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.1461, allocations: 366.8 kB / 0.5093 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.1464, allocations: 145 kB / 0.5094 GB, free: 3.477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/0.1468, allocations: 318 kB / 0.5097 GB, free: 3.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.1489, allocations: 0.9331 MB / 0.5106 GB, free: 2.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.149, allocations: 0 / 0.5106 GB, free: 2.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001187/0.1501, allocations: 0.6479 MB / 0.5112 GB, free: 1.406 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.1502, allocations: 41.69 kB / 0.5113 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1502, allocations: 8 kB / 0.5113 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.1502, allocations: 8 kB / 0.5113 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.1507, allocations: 115.8 kB / 0.5114 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.1507, allocations: 8.469 kB / 0.5114 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.1511, allocations: 67.56 kB / 0.5115 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/0.1511, allocations: 24 kB / 0.5115 GB, free: 1.133 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.0004567/0.1516, allocations: 282.8 kB / 0.5118 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.1517, allocations: 55.62 kB / 0.5118 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.1527, allocations: 0.4971 MB / 0.5123 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1527, allocations: 0 / 0.5123 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1527, allocations: 4 kB / 0.5123 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1528, allocations: 7.984 kB / 0.5123 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2055/0.3582, allocations: 428.6 kB / 0.5127 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.3582, allocations: 0 / 0.5127 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.3587, allocations: 71.31 kB / 0.5128 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.3587, allocations: 0 / 0.5128 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.488e-05/0.3588, allocations: 14.56 kB / 0.5128 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3588, allocations: 5.672 kB / 0.5128 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3588, allocations: 0 / 0.5128 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.3601, allocations: 0.6678 MB / 0.5135 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.3602, allocations: 56.45 kB / 0.5135 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/0.3603, allocations: 14.58 kB / 0.5135 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3604, allocations: 17.7 kB / 0.5136 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.896e-05/0.3605, allocations: 25.61 kB / 0.5136 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.3605, allocations: 14.39 kB / 0.5136 GB, free: 23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003868/0.3609, allocations: 388.4 kB / 0.514 GB, free: 22.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3609, allocations: 0 / 0.514 GB, free: 22.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004768/0.3614, allocations: 119.6 kB / 0.5141 GB, free: 22.91 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.002661/0.3641, allocations: 1.574 MB / 0.5156 GB, free: 22.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007861/0.3649, allocations: 449.1 kB / 0.516 GB, free: 22.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3649, allocations: 10.06 kB / 0.516 GB, free: 22.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.3651, allocations: 222.3 kB / 0.5163 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.3656, allocations: 88.62 kB / 0.5163 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005587/0.3712, allocations: 4.866 MB / 0.5211 GB, free: 20.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.3715, allocations: 0.8774 MB / 0.522 GB, free: 19.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002705/0.3718, allocations: 105.1 kB / 0.5221 GB, free: 19.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.372, allocations: 188 kB / 0.5222 GB, free: 19.43 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.372, allocations: 0 / 0.5222 GB, free: 19.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04388/0.4159, allocations: 11.21 MB / 0.5332 GB, free: 16.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.26, allocations: 5.156 kB / 0.5332 GB, free: 16.7 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 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: 14.980417527025566] Failed to read output from testmodel.py, exit status != 0: 12.429435630794615 12.441176915 12.304206167 Calling exit ...