Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.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.001336/0.001336, allocations: 102.8 kB / 16.45 MB, free: 6.387 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.00141/0.00141, allocations: 214.3 kB / 19.43 MB, free: 3.73 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.472/1.472, allocations: 230.6 MB / 252.8 MB, free: 8.992 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.06684/0.06684, allocations: 11.31 MB / 320.2 MB, free: 9.438 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.Applications.ControlProblems.ProcessControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.ProcessControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl",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.002118/0.002118, allocations: 67.91 kB / 445.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.123, allocations: 56.01 MB / 0.4901 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.006407/0.1294, allocations: 4.432 MB / 0.4944 GB, free: 1.242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003622/0.133, allocations: 1.84 MB / 0.4962 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008157/0.1338, allocations: 102.9 kB / 0.4963 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004093/0.1342, allocations: 181.6 kB / 0.4965 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006197/0.1349, allocations: 182.1 kB / 0.4966 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.1368, allocations: 0.9581 MB / 0.4976 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001924/0.1387, allocations: 1.628 MB / 0.4992 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005527/0.1393, allocations: 316.8 kB / 0.4995 GB, free: 12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000839/0.1401, allocations: 0.6808 MB / 0.5001 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000727/0.1409, allocations: 0.6058 MB / 0.5007 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.141, allocations: 128 kB / 0.5008 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.1412, allocations: 128 kB / 0.501 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002989/0.1415, allocations: 334.6 kB / 0.5013 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005759/0.1421, allocations: 0.6443 MB / 0.5019 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1437, allocations: 1.384 MB / 0.5033 GB, free: 8.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1437, allocations: 3.938 kB / 0.5033 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1437, allocations: 0 / 0.5033 GB, free: 8.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.1437, allocations: 3.984 kB / 0.5033 GB, free: 8.082 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.003261/0.147, allocations: 1.826 MB / 0.505 GB, free: 6.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.147, allocations: 8.031 kB / 0.5051 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001952/0.1472, allocations: 165.1 kB / 0.5052 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002712/0.1475, allocations: 191.8 kB / 0.5054 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001908/0.1494, allocations: 1.071 MB / 0.5064 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003052/0.1497, allocations: 308.7 kB / 0.5067 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002297/0.1499, allocations: 140.3 kB / 0.5069 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.1521, allocations: 1.298 MB / 0.5081 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.1521, allocations: 7.922 kB / 0.5081 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.952e-05/0.1522, allocations: 52 kB / 0.5082 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.957e-05/0.1522, allocations: 32 kB / 0.5082 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.1537, allocations: 0.796 MB / 0.509 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2047/0.3584, allocations: 5.284 MB / 0.5142 GB, free: 20.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.3603, allocations: 0.8058 MB / 0.515 GB, free: 20.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006852/0.3609, allocations: 398.8 kB / 0.5153 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-05/0.361, allocations: 18.36 kB / 0.5153 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.3611, allocations: 47 kB / 0.5154 GB, free: 20.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 3.356e-06/0.3611, allocations: 0 / 0.5154 GB, free: 20.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.001857/0.3629, allocations: 1.099 MB / 0.5165 GB, free: 20.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.159e-05/0.363, allocations: 378.6 kB / 0.5168 GB, free: 19.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.3641, allocations: 1.014 MB / 0.5178 GB, free: 19.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.367e-05/0.3642, allocations: 50.2 kB / 0.5179 GB, free: 19.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.3645, allocations: 0.662 MB / 0.5185 GB, free: 19.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002433/0.3648, allocations: 410.9 kB / 0.5189 GB, free: 19.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003525/0.3651, allocations: 298 kB / 0.5192 GB, free: 19.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.279e-05/0.3652, allocations: 305.7 kB / 0.5195 GB, free: 18.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006007/0.3658, allocations: 365.2 kB / 0.5198 GB, free: 18.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007695/0.3665, allocations: 0.8656 MB / 0.5207 GB, free: 18.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.3679, allocations: 1.214 MB / 0.5219 GB, free: 17.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.3679, allocations: 3.812 kB / 0.5219 GB, free: 17.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00203/0.3699, allocations: 1.387 MB / 0.5232 GB, free: 16.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.37, allocations: 11.36 kB / 0.5232 GB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.37, allocations: 12.47 kB / 0.5232 GB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.966e-05/0.37, allocations: 21.86 kB / 0.5233 GB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.3716, allocations: 356.4 kB / 0.5236 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.448e-05/0.3716, allocations: 31.66 kB / 0.5236 GB, free: 16.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007566/0.3723, allocations: 159.5 kB / 0.5238 GB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-05/0.3724, allocations: 64.86 kB / 0.5238 GB, free: 16.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 32 (R_FS.satLOW_in,R_FS.satHIGH_in,R_FS.ATreq_in,R_FS.TS_in,R_Osc.TS_in,R_US.TS_in,R_OS.TS_in,R_iD.TS_in,R_i.TS_in,R_FOD.TS_in,R_FO.TS_in,R_Osc.satLOW_in,R_Osc.satHIGH_in,R_Osc.ATreq_in,R_US.satLOW_in,R_US.satHIGH_in,R_US.ATreq_in,R_OS.satLOW_in,R_OS.satHIGH_in,R_OS.ATreq_in,R_iD.satLOW_in,R_iD.satHIGH_in,R_iD.ATreq_in,R_i.satLOW_in,R_i.satHIGH_in,R_i.ATreq_in,R_FOD.satLOW_in,R_FOD.satHIGH_in,R_FOD.ATreq_in,R_FO.satLOW_in,R_FO.satHIGH_in,R_FO.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * 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.0004396/0.3729, allocations: 300.4 kB / 0.5241 GB, free: 16.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.373, allocations: 140 kB / 0.5243 GB, free: 16.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.3749, allocations: 1.058 MB / 0.5253 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.3749, allocations: 16.31 kB / 0.5253 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3749, allocations: 0 / 0.5253 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.3749, allocations: 5.531 kB / 0.5253 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.3762, allocations: 1.122 MB / 0.5264 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.3762, allocations: 0 / 0.5264 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/0.3779, allocations: 303.6 kB / 0.5267 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.3779, allocations: 3.766 kB / 0.5267 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.467e-05/0.378, allocations: 34.89 kB / 0.5267 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.378, allocations: 4.25 kB / 0.5267 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.378, allocations: 5.031 kB / 0.5267 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.38, allocations: 1.464 MB / 0.5282 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.3801, allocations: 218.4 kB / 0.5284 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3802, allocations: 30.59 kB / 0.5284 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/0.3808, allocations: 27.94 kB / 0.5284 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.3809, allocations: 77.59 kB / 0.5285 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.381, allocations: 30.08 kB / 0.5285 GB, free: 14.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007399/0.3817, allocations: 0.6333 MB / 0.5292 GB, free: 14 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3817, allocations: 0 / 0.5292 GB, free: 14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009156/0.3826, allocations: 257.6 kB / 0.5294 GB, free: 13.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 40 (NoControl.firstOrder.y,NoControl.firstOrder1.y,NoControl.integrator.y,NoControl.integrator1.y,NoControl.leadLag.dy,NoControl.firstOrder2.y,NoControl.leadLag1.dy,NoControl.firstOrder3.y,NoControl.complexPoles.y,NoControl.complexPoles.dy,NoControl.leadLag2.dy,NoControl.firstOrder4.y,Controlled.firstOrder.y,Controlled.firstOrder1.y,Controlled.integrator.y,Controlled.integrator1.y,Controlled.leadLag.dy,Controlled.firstOrder2.y,Controlled.leadLag1.dy,Controlled.firstOrder3.y,Controlled.complexPoles.y,Controlled.complexPoles.dy,Controlled.leadLag2.dy,Controlled.firstOrder4.y,R_FO.Iaction,R_FO.Fder,R_FOD.Iaction,R_FOD.Fder,R_i.Iaction,R_i.Fder,R_iD.Iaction,R_iD.Fder,R_OS.Iaction,R_OS.Fder,R_US.Iaction,R_US.Fder,R_Osc.Iaction,R_Osc.Fder,R_FS.Iaction,R_FS.Fder) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.002258/0.3849, allocations: 2.075 MB / 0.5314 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.3864, allocations: 0.9238 MB / 0.5323 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3864, allocations: 5.125 kB / 0.5323 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005703/0.387, allocations: 431.8 kB / 0.5328 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007102/0.3877, allocations: 156.5 kB / 0.5329 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.4008, allocations: 10.81 MB / 0.5435 GB, free: 6.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/0.4014, allocations: 1.196 MB / 0.5446 GB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006285/0.402, allocations: 187.9 kB / 0.5448 GB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/0.4027, allocations: 0.5798 MB / 0.5454 GB, free: 5.148 MB / 382.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4027, allocations: 3.938 kB / 0.5454 GB, free: 5.145 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07352/0.4762, allocations: 22.33 MB / 0.5672 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/11.06, allocations: 11.5 kB / 0.5672 GB, free: 0.5312 MB / 398.1 MB " [Timeout remaining time 649] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.837269910000032] Failed to read output from testmodel.py, exit status != 0: 11.15295499000058 11.178712372 11.030212279 Calling exit ...