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.00134/0.00134, allocations: 108.9 kB / 16.46 MB, free: 6.508 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.001397/0.001397, allocations: 216.2 kB / 19.43 MB, free: 3.648 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.509/1.509, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.06386/0.06386, allocations: 11.32 MB / 320.2 MB, free: 9.422 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.002933/0.002933, allocations: 63.91 kB / 447.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1458, allocations: 56.02 MB / 0.4913 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2823/0.4281, allocations: 25.4 MB / 0.5161 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008807/0.4369, allocations: 6.867 MB / 0.5228 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.4382, allocations: 72.97 kB / 0.5229 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001299/0.4395, allocations: 450.6 kB / 0.5233 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003229/0.4427, allocations: 1.169 MB / 0.5244 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004046/0.4468, allocations: 1.315 MB / 0.5257 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004713/0.4515, allocations: 2.639 MB / 0.5283 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.4531, allocations: 0.7105 MB / 0.529 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002941/0.456, allocations: 1.12 MB / 0.5301 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002329/0.4584, allocations: 0.9585 MB / 0.531 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003224/0.4587, allocations: 100.9 kB / 0.5311 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.4604, allocations: 497.8 kB / 0.5316 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004725/0.4609, allocations: 398.5 kB / 0.532 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008157/0.4617, allocations: 0.6522 MB / 0.5326 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003001/0.4647, allocations: 1.71 MB / 0.5343 GB, free: 4.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4647, allocations: 2.906 kB / 0.5343 GB, free: 4.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4647, allocations: 0 / 0.5343 GB, free: 4.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.185e-05/0.4648, allocations: 0 / 0.5343 GB, free: 4.93 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.003287/0.4681, allocations: 1.666 MB / 0.5359 GB, free: 3.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4681, allocations: 9.625 kB / 0.5359 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002197/0.4683, allocations: 156.8 kB / 0.5361 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000505/0.4688, allocations: 163.2 kB / 0.5362 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.4702, allocations: 0.8777 MB / 0.5371 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.4704, allocations: 220.3 kB / 0.5373 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.4705, allocations: 96.44 kB / 0.5374 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.4726, allocations: 1.384 MB / 0.5387 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.4727, allocations: 8.312 kB / 0.5387 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.4728, allocations: 43.58 kB / 0.5388 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.592e-05/0.4728, allocations: 59.27 kB / 0.5388 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/0.4747, allocations: 1.073 MB / 0.5399 GB, free: 1.906 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.008366/0.4831, allocations: 7.094 MB / 0.5468 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.4848, allocations: 0.7385 MB / 0.5475 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000701/0.4855, allocations: 413.8 kB / 0.5479 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002977/0.4884, allocations: 2.313 MB / 0.5502 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.4885, allocations: 45.44 kB / 0.5502 GB, free: 8.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.414e-06/0.4885, allocations: 0 / 0.5502 GB, free: 8.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.007531/0.496, allocations: 3.122 MB / 0.5533 GB, free: 6.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.4961, allocations: 138.6 kB / 0.5534 GB, free: 6.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.4975, allocations: 0.9346 MB / 0.5543 GB, free: 6.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.596e-05/0.4976, allocations: 45.64 kB / 0.5544 GB, free: 6.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005453/0.4981, allocations: 0.6113 MB / 0.555 GB, free: 5.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/0.4984, allocations: 303.9 kB / 0.5552 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003828/0.4988, allocations: 264.4 kB / 0.5555 GB, free: 5.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.499, allocations: 363.5 kB / 0.5558 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007425/0.4997, allocations: 421.1 kB / 0.5562 GB, free: 4.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.501, allocations: 0.9284 MB / 0.5572 GB, free: 3.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/0.5124, allocations: 3.029 MB / 0.5601 GB, free: 1.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.5124, allocations: 5.781 kB / 0.5601 GB, free: 1.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003017/0.5154, allocations: 1.621 MB / 0.5617 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.5154, allocations: 12 kB / 0.5617 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.5154, allocations: 24.59 kB / 0.5617 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009333/0.5164, allocations: 360.6 kB / 0.5621 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.5174, allocations: 280.6 kB / 0.5623 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.5217, allocations: 4.297 MB / 0.5665 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.5228, allocations: 48.03 kB / 0.5666 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.5229, allocations: 67.98 kB / 0.5667 GB, free: 11.59 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.0007327/0.5236, allocations: 348.9 kB / 0.567 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/0.5239, allocations: 127.2 kB / 0.5671 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003303/0.5272, allocations: 1.52 MB / 0.5686 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.5272, allocations: 12 kB / 0.5686 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5272, allocations: 0 / 0.5686 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.5272, allocations: 7.922 kB / 0.5686 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004415/0.5316, allocations: 2.422 MB / 0.571 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.5317, allocations: 4.938 kB / 0.571 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008474/0.5325, allocations: 163.8 kB / 0.5711 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008164/0.5333, allocations: 342.4 kB / 0.5715 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.821e-05/0.5334, allocations: 23.98 kB / 0.5715 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004059/0.5374, allocations: 4.287 MB / 0.5757 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5374, allocations: 4 kB / 0.5757 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003709/0.5412, allocations: 1.932 MB / 0.5776 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000676/0.5418, allocations: 288.1 kB / 0.5778 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.542, allocations: 20.08 kB / 0.5779 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006054/0.5426, allocations: 35.92 kB / 0.5779 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.5428, allocations: 92.89 kB / 0.578 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.141e-05/0.5429, allocations: 43.92 kB / 0.578 GB, free: 15.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00097/0.5439, allocations: 0.6333 MB / 0.5786 GB, free: 14.88 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5439, allocations: 0 / 0.5786 GB, free: 14.88 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001839/0.5457, allocations: 351.7 kB / 0.579 GB, free: 14.54 MB / 430.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.00491/0.5506, allocations: 2.65 MB / 0.5816 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.5536, allocations: 1.344 MB / 0.5829 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/0.5536, allocations: 5.312 kB / 0.5829 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.555, allocations: 0.7686 MB / 0.5836 GB, free: 9.688 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/0.5578, allocations: 0.4944 MB / 0.5841 GB, free: 9.199 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01709/0.5749, allocations: 10.54 MB / 0.5944 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008461/0.5757, allocations: 1.134 MB / 0.5955 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001068/0.5768, allocations: 309.4 kB / 0.5958 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006359/0.5774, allocations: 475.3 kB / 0.5963 GB, free: 12.12 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5774, allocations: 0 / 0.5963 GB, free: 12.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08555/0.6629, allocations: 34.23 MB / 0.6297 GB, free: 10.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/15.06, allocations: 4.062 kB / 0.6297 GB, free: 10.26 MB / 478.1 MB " [Timeout remaining time 645] (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: 18.011521819003974] Failed to read output from testmodel.py, exit status != 0: 15.184398487996077 15.19732475 14.729379064 Calling exit ...