Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.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.001259/0.001259, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001376/0.001376, allocations: 214.1 kB / 22.24 MB, free: 5.262 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.383/1.383, allocations: 230.6 MB / 256 MB, free: 7.793 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.06344/0.06344, allocations: 11.35 MB / 323.8 MB, free: 8.027 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.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",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.00198/0.00198, allocations: 67.91 kB / 452.2 MB, free: 9.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.105, allocations: 56.07 MB / 0.4964 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2423/0.3473, allocations: 23.23 MB / 0.5191 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008741/0.356, allocations: 6.348 MB / 0.5253 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.3573, allocations: 71.75 kB / 0.5253 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.3585, allocations: 432.3 kB / 0.5257 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003368/0.3619, allocations: 1.181 MB / 0.5269 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003946/0.3658, allocations: 1.348 MB / 0.5282 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003708/0.3695, allocations: 2.648 MB / 0.5308 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.3707, allocations: 0.6847 MB / 0.5315 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.3729, allocations: 1.127 MB / 0.5326 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.3747, allocations: 0.9306 MB / 0.5335 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.3749, allocations: 99.66 kB / 0.5336 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.3763, allocations: 419 kB / 0.534 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004028/0.3767, allocations: 399.1 kB / 0.5343 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005925/0.3773, allocations: 0.5413 MB / 0.5349 GB, free: 4.855 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.3796, allocations: 1.706 MB / 0.5365 GB, free: 4.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3796, allocations: 4 kB / 0.5365 GB, free: 4.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3796, allocations: 0 / 0.5365 GB, free: 4.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.34e-05/0.3797, allocations: 1.031 kB / 0.5365 GB, free: 4.266 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002898/0.3826, allocations: 1.589 MB / 0.5381 GB, free: 3.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3826, allocations: 8.906 kB / 0.5381 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.3828, allocations: 154.1 kB / 0.5383 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004719/0.3833, allocations: 160 kB / 0.5384 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.3848, allocations: 0.7971 MB / 0.5392 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.385, allocations: 306.3 kB / 0.5395 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.3852, allocations: 93.06 kB / 0.5396 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.3871, allocations: 1.764 MB / 0.5413 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.3871, allocations: 7.844 kB / 0.5413 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.995e-05/0.3872, allocations: 44.7 kB / 0.5413 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.042e-05/0.3873, allocations: 53.95 kB / 0.5414 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.3888, allocations: 1.076 MB / 0.5424 GB, free: 0.6719 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007513/0.3963, allocations: 6.128 MB / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.3979, allocations: 0.7419 MB / 0.5492 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006751/0.3986, allocations: 415.8 kB / 0.5495 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002204/0.4008, allocations: 1.044 MB / 0.5506 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.4008, allocations: 41.5 kB / 0.5506 GB, free: 10.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.445e-06/0.4008, allocations: 0 / 0.5506 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.006556/0.4074, allocations: 2.82 MB / 0.5534 GB, free: 8.598 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/0.4075, allocations: 147 kB / 0.5535 GB, free: 8.434 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.4087, allocations: 0.9594 MB / 0.5544 GB, free: 7.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.67e-05/0.4088, allocations: 41.83 kB / 0.5545 GB, free: 7.836 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004889/0.4093, allocations: 0.6072 MB / 0.5551 GB, free: 7.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002649/0.4095, allocations: 307.9 kB / 0.5554 GB, free: 7.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003571/0.4099, allocations: 252.8 kB / 0.5556 GB, free: 6.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4101, allocations: 367.3 kB / 0.556 GB, free: 6.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007232/0.4108, allocations: 424.6 kB / 0.5564 GB, free: 6.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.412, allocations: 0.9998 MB / 0.5573 GB, free: 5.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.4222, allocations: 3.04 MB / 0.5603 GB, free: 3.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.4222, allocations: 6.875 kB / 0.5603 GB, free: 3.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002858/0.4251, allocations: 1.612 MB / 0.5619 GB, free: 2.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.4251, allocations: 12.38 kB / 0.5619 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.4251, allocations: 20.66 kB / 0.5619 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000825/0.426, allocations: 371.8 kB / 0.5623 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009208/0.4269, allocations: 285.2 kB / 0.5625 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.4308, allocations: 4.082 MB / 0.5665 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.4319, allocations: 52.03 kB / 0.5666 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.432, allocations: 67.98 kB / 0.5666 GB, free: 13.85 MB / 414.1 MB Warning: Assuming fixed start value for the following 3 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start_eps unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"Level height of tank\" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) \"Temperature of medium\" type: Real actuator.y:VARIABLE(flow=false min = 0.0 max = 1.0 start = actuator.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 20 (tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Valve.TS_in,PI_Level.TS_in,PI_Valve.satLOW_in,PI_Valve.satHIGH_in,PI_Valve.ATreq_in,sub.Yfp,sub.U2fp,sub.U1fp,div.Yfp,div.U2fp,div.U1fp,PI_Level.satLOW_in,PI_Level.satHIGH_in,PI_Level.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,7), (2,1), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000742/0.4327, allocations: 341.2 kB / 0.567 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/0.4329, allocations: 126 kB / 0.5671 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003028/0.436, allocations: 1.521 MB / 0.5686 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.436, allocations: 8 kB / 0.5686 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.436, allocations: 4 kB / 0.5686 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.436, allocations: 11.91 kB / 0.5686 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004029/0.44, allocations: 2.271 MB / 0.5708 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.44, allocations: 4.031 kB / 0.5708 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/0.4408, allocations: 163.8 kB / 0.571 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007768/0.4416, allocations: 348.1 kB / 0.5713 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.838e-05/0.4416, allocations: 24 kB / 0.5713 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.4454, allocations: 4.068 MB / 0.5753 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.4454, allocations: 3.938 kB / 0.5753 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00338/0.4488, allocations: 1.932 MB / 0.5772 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000674/0.4494, allocations: 222.9 kB / 0.5774 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.4496, allocations: 20 kB / 0.5774 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.4502, allocations: 35.92 kB / 0.5775 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.4504, allocations: 88.83 kB / 0.5775 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.768e-05/0.4504, allocations: 39.98 kB / 0.5776 GB, free: 2.266 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008838/0.4513, allocations: 0.6372 MB / 0.5782 GB, free: 1.621 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4513, allocations: 4 kB / 0.5782 GB, free: 1.617 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001457/0.4528, allocations: 343.8 kB / 0.5785 GB, free: 1.281 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (PI_Level.Iaction,PI_Level.Fder,tank.level,tank.medium.T,actuator.y,PI_Valve.Iaction,PI_Valve.Fder) * Number of discrete variables: 6 (tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004164/0.4569, allocations: 2.661 MB / 0.5811 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.4595, allocations: 1.332 MB / 0.5824 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.4595, allocations: 7.938 kB / 0.5824 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.4608, allocations: 0.7852 MB / 0.5832 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.463, allocations: 0.4913 MB / 0.5837 GB, free: 11.92 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.4789, allocations: 10.54 MB / 0.594 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006154/0.4795, allocations: 0.5477 MB / 0.5945 GB, free: 184 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.4806, allocations: 317.9 kB / 0.5948 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006252/0.4812, allocations: 475.3 kB / 0.5953 GB, free: 15.41 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4812, allocations: 0 / 0.5953 GB, free: 15.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08831/0.5695, allocations: 35.88 MB / 0.6303 GB, free: 12.01 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.79, allocations: 7.859 kB / 0.6303 GB, free: 12 MB / 478.1 MB " [Timeout remaining time 646] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl_res.csv --start-time 0 --stop-time 4500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.8 IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.482502057682723] Failed to read output from testmodel.py, exit status != 0: 13.921250371728092 13.936263626 13.553548565 Calling exit ...