Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.001868/0.001868, allocations: 114.3 kB / 18.94 MB, free: 2.793 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.001634/0.001634, allocations: 221.6 kB / 22.26 MB, free: 5.211 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 8 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.06551/0.06551, allocations: 11.34 MB / 323.8 MB, free: 8.238 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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.002037/0.002037, allocations: 68.17 kB / 451 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1053, allocations: 56.07 MB / 0.4952 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.004067/0.1093, allocations: 2.5 MB / 0.4977 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.1123, allocations: 1.712 MB / 0.4993 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.1125, allocations: 23.75 kB / 0.4994 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007101/0.1133, allocations: 231 kB / 0.4996 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000482/0.1137, allocations: 203 kB / 0.4998 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1147, allocations: 446.4 kB / 0.5002 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007937/0.1155, allocations: 0.6724 MB / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.1157, allocations: 57.53 kB / 0.5009 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.116, allocations: 255 kB / 0.5012 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.1164, allocations: 258.9 kB / 0.5014 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.18e-05/0.1164, allocations: 36 kB / 0.5014 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1167, allocations: 167.8 kB / 0.5016 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1169, allocations: 151.5 kB / 0.5017 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.1171, allocations: 226.5 kB / 0.502 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007262/0.1178, allocations: 0.5833 MB / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1179, allocations: 4 kB / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1179, allocations: 0 / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.403e-06/0.1179, allocations: 3.938 kB / 0.5025 GB, free: 10.81 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.001546/0.1194, allocations: 0.8672 MB / 0.5034 GB, free: 9.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1194, allocations: 8.031 kB / 0.5034 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.153e-05/0.1195, allocations: 74.72 kB / 0.5035 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.1197, allocations: 68.52 kB / 0.5035 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007367/0.1204, allocations: 407.8 kB / 0.5039 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.741e-05/0.1204, allocations: 33.38 kB / 0.5039 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.1205, allocations: 43.92 kB / 0.504 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008561/0.1214, allocations: 480.1 kB / 0.5044 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/0.1214, allocations: 15.94 kB / 0.5045 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.635e-05/0.1214, allocations: 12 kB / 0.5045 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1214, allocations: 8 kB / 0.5045 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006252/0.1221, allocations: 326.3 kB / 0.5048 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.1248, allocations: 1.893 MB / 0.5066 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.1253, allocations: 226.9 kB / 0.5069 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.1256, allocations: 133 kB / 0.507 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.1256, allocations: 8.234 kB / 0.507 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000442/0.126, allocations: 244.1 kB / 0.5072 GB, free: 5.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.545e-06/0.126, allocations: 0 / 0.5072 GB, free: 5.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001189/0.1272, allocations: 0.5478 MB / 0.5078 GB, free: 5.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.1273, allocations: 118.8 kB / 0.5079 GB, free: 5.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006624/0.128, allocations: 0.5535 MB / 0.5084 GB, free: 4.512 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.128, allocations: 29.7 kB / 0.5084 GB, free: 4.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.1283, allocations: 296.3 kB / 0.5087 GB, free: 4.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.1284, allocations: 127 kB / 0.5088 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.1285, allocations: 102.1 kB / 0.5089 GB, free: 3.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1287, allocations: 374.7 kB / 0.5093 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.129, allocations: 141 kB / 0.5094 GB, free: 3.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.1294, allocations: 322 kB / 0.5097 GB, free: 3.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.1315, allocations: 0.9446 MB / 0.5107 GB, free: 2.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.1315, allocations: 4 kB / 0.5107 GB, free: 2.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001153/0.1326, allocations: 0.6401 MB / 0.5113 GB, free: 1.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.302e-05/0.1327, allocations: 41.69 kB / 0.5113 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1327, allocations: 4 kB / 0.5113 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.1327, allocations: 8 kB / 0.5113 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.1332, allocations: 112.4 kB / 0.5114 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.751e-05/0.1332, allocations: 11.94 kB / 0.5115 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.1335, allocations: 63.61 kB / 0.5115 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.225e-05/0.1335, allocations: 24 kB / 0.5115 GB, free: 1.09 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.0004958/0.134, allocations: 282.7 kB / 0.5118 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.1341, allocations: 59.62 kB / 0.5119 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009595/0.1351, allocations: 0.4971 MB / 0.5124 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1351, allocations: 4 kB / 0.5124 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.1351, allocations: 4 kB / 0.5124 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1351, allocations: 7.984 kB / 0.5124 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2077/0.3428, allocations: 440.4 kB / 0.5128 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3428, allocations: 0 / 0.5128 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.3433, allocations: 62.94 kB / 0.5129 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/0.3433, allocations: 4.016 kB / 0.5129 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.334e-05/0.3433, allocations: 15.59 kB / 0.5129 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3434, allocations: 0 / 0.5129 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3434, allocations: 0 / 0.5129 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.3445, allocations: 0.6712 MB / 0.5135 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.642e-05/0.3446, allocations: 57.25 kB / 0.5136 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.3446, allocations: 14.19 kB / 0.5136 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3448, allocations: 14 kB / 0.5136 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.185e-05/0.3449, allocations: 30.75 kB / 0.5136 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.3449, allocations: 13.33 kB / 0.5136 GB, free: 22.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004124/0.3454, allocations: 388.4 kB / 0.514 GB, free: 22.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3454, allocations: 0 / 0.514 GB, free: 22.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005168/0.3459, allocations: 122.3 kB / 0.5141 GB, free: 22.89 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.002835/0.3487, allocations: 1.563 MB / 0.5157 GB, free: 22.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007252/0.3494, allocations: 455 kB / 0.5161 GB, free: 22.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3494, allocations: 6.281 kB / 0.5161 GB, free: 22.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.3497, allocations: 221.5 kB / 0.5163 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.3501, allocations: 82.55 kB / 0.5164 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005317/0.3554, allocations: 4.891 MB / 0.5212 GB, free: 20.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.3557, allocations: 0.8816 MB / 0.522 GB, free: 19.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002622/0.356, allocations: 102.9 kB / 0.5221 GB, free: 19.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.3562, allocations: 199.3 kB / 0.5223 GB, free: 19.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3562, allocations: 0 / 0.5223 GB, free: 19.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04346/0.3997, allocations: 11.28 MB / 0.5333 GB, free: 16.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.56, allocations: 5.031 kB / 0.5333 GB, free: 16.64 MB / 382.1 MB " [Timeout remaining time 647] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.360444799000106] Failed to read output from testmodel.py, exit status != 0: 12.724425764004991 12.737425017 12.617218181 Calling exit ...