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.001312/0.001312, 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.001689/0.001689, allocations: 212.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.37/1.37, allocations: 230.6 MB / 256 MB, free: 7.789 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.06178/0.06178, allocations: 11.33 MB / 323.8 MB, free: 8.043 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.002021/0.002021, allocations: 75.89 kB / 452.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1073, allocations: 56.07 MB / 0.4964 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2508/0.3581, allocations: 23.23 MB / 0.5191 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008078/0.3661, allocations: 6.346 MB / 0.5253 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.3674, allocations: 71.22 kB / 0.5253 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.3685, allocations: 430.6 kB / 0.5257 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002962/0.3715, allocations: 1.183 MB / 0.5269 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003703/0.3752, allocations: 1.348 MB / 0.5282 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003693/0.3789, allocations: 2.654 MB / 0.5308 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.3801, allocations: 0.6821 MB / 0.5315 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002482/0.3826, allocations: 1.128 MB / 0.5326 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.3843, allocations: 0.9221 MB / 0.5335 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002137/0.3845, allocations: 100.8 kB / 0.5336 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.3858, allocations: 420.1 kB / 0.534 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00041/0.3862, allocations: 408.5 kB / 0.5344 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.3868, allocations: 0.5372 MB / 0.5349 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.389, allocations: 1.705 MB / 0.5365 GB, free: 4.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.389, allocations: 0 / 0.5365 GB, free: 4.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.389, allocations: 0 / 0.5365 GB, free: 4.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.436e-05/0.389, allocations: 3.938 kB / 0.5365 GB, free: 4.293 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.003169/0.3922, allocations: 1.592 MB / 0.5381 GB, free: 3.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3923, allocations: 9.156 kB / 0.5381 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001833/0.3924, allocations: 154.3 kB / 0.5383 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005135/0.393, allocations: 162.4 kB / 0.5384 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.3946, allocations: 0.793 MB / 0.5392 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.3948, allocations: 300 kB / 0.5395 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.3949, allocations: 95.28 kB / 0.5396 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.397, allocations: 1.768 MB / 0.5413 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.397, allocations: 7.094 kB / 0.5413 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.3971, allocations: 45.61 kB / 0.5413 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.678e-05/0.3972, allocations: 64.38 kB / 0.5414 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.3989, allocations: 1.064 MB / 0.5424 GB, free: 0.7031 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.007738/0.4066, allocations: 6.129 MB / 0.5484 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.4082, allocations: 0.7442 MB / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007004/0.4089, allocations: 413.3 kB / 0.5495 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002371/0.4113, allocations: 1.04 MB / 0.5506 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.4113, allocations: 52.89 kB / 0.5506 GB, free: 10.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.465e-06/0.4113, allocations: 0 / 0.5506 GB, free: 10.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.007506/0.4189, allocations: 2.817 MB / 0.5534 GB, free: 8.621 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.419, allocations: 138.5 kB / 0.5535 GB, free: 8.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/0.4205, allocations: 0.9664 MB / 0.5544 GB, free: 7.902 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.057e-05/0.4205, allocations: 42.64 kB / 0.5545 GB, free: 7.859 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006158/0.4212, allocations: 0.603 MB / 0.5551 GB, free: 7.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.4214, allocations: 312.7 kB / 0.5554 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003633/0.4218, allocations: 247.9 kB / 0.5556 GB, free: 6.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.422, allocations: 368.5 kB / 0.556 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007082/0.4227, allocations: 421.2 kB / 0.5564 GB, free: 6.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.4239, allocations: 0.9986 MB / 0.5573 GB, free: 5.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/0.4344, allocations: 3.039 MB / 0.5603 GB, free: 3.469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.4344, allocations: 5.312 kB / 0.5603 GB, free: 3.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00293/0.4373, allocations: 1.616 MB / 0.5619 GB, free: 2.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.4373, allocations: 18.12 kB / 0.5619 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.4373, allocations: 19.88 kB / 0.5619 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008142/0.4382, allocations: 374.8 kB / 0.5623 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009294/0.4391, allocations: 274 kB / 0.5625 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/0.443, allocations: 4.092 MB / 0.5665 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.444, allocations: 53.25 kB / 0.5666 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.4442, allocations: 64 kB / 0.5666 GB, free: 13.86 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.0007166/0.4449, allocations: 343 kB / 0.567 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/0.4451, allocations: 127.2 kB / 0.5671 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.4481, allocations: 1.518 MB / 0.5686 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.4481, allocations: 16 kB / 0.5686 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.4481, allocations: 3.938 kB / 0.5686 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.4481, allocations: 7.922 kB / 0.5686 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004101/0.4522, allocations: 2.275 MB / 0.5708 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.4522, allocations: 4 kB / 0.5708 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.453, allocations: 159.8 kB / 0.571 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007794/0.4538, allocations: 347 kB / 0.5713 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.363e-05/0.4538, allocations: 27.92 kB / 0.5713 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003675/0.4575, allocations: 4.055 MB / 0.5753 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4575, allocations: 4 kB / 0.5753 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003526/0.461, allocations: 1.94 MB / 0.5772 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006588/0.4617, allocations: 215 kB / 0.5774 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.4619, allocations: 23.94 kB / 0.5774 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005608/0.4624, allocations: 33.09 kB / 0.5775 GB, free: 2.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.4626, allocations: 96.78 kB / 0.5775 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.158e-05/0.4627, allocations: 35.97 kB / 0.5776 GB, free: 2.273 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008941/0.4636, allocations: 0.6372 MB / 0.5782 GB, free: 1.629 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4636, allocations: 0 / 0.5782 GB, free: 1.629 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001474/0.4651, allocations: 351.7 kB / 0.5785 GB, free: 1.285 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.004203/0.4693, allocations: 2.656 MB / 0.5811 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.4718, allocations: 1.344 MB / 0.5824 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.4718, allocations: 5.25 kB / 0.5824 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.4731, allocations: 0.7764 MB / 0.5832 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.4753, allocations: 0.4942 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.01636/0.4917, allocations: 10.55 MB / 0.594 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006133/0.4923, allocations: 0.5438 MB / 0.5945 GB, free: 180 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.4934, allocations: 315.1 kB / 0.5948 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006268/0.494, allocations: 471.3 kB / 0.5953 GB, free: 15.41 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.494, allocations: 0 / 0.5953 GB, free: 15.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1106/0.6046, allocations: 35.87 MB / 0.6303 GB, free: 12.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.66, allocations: 11.59 kB / 0.6303 GB, free: 12.01 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl_fmu --startTime=0 --stopTime=4500 --stepSize=1.8 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.321048740297556] Failed to read output from testmodel.py, exit status != 0: 13.79673395305872 13.81448919 13.421975864 Calling exit ...