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.001309/0.001309, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00151/0.00151, allocations: 219 kB / 22.25 MB, free: 5.121 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.529/1.529, allocations: 230.6 MB / 256 MB, free: 7.984 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.06456/0.06456, allocations: 11.34 MB / 323.8 MB, free: 8.219 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.002079/0.002079, allocations: 59.91 kB / 452.3 MB, free: 9.238 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1353, allocations: 56.07 MB / 0.4964 GB, free: 1.066 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2594/0.3947, allocations: 25.66 MB / 0.5215 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.4051, allocations: 6.9 MB / 0.5282 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00179/0.4069, allocations: 77.28 kB / 0.5283 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.4083, allocations: 446.1 kB / 0.5287 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003894/0.4122, allocations: 1.18 MB / 0.5299 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004286/0.4165, allocations: 1.365 MB / 0.5312 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003829/0.4203, allocations: 2.665 MB / 0.5338 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001348/0.4217, allocations: 0.6838 MB / 0.5345 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.424, allocations: 1.12 MB / 0.5356 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.4256, allocations: 0.9631 MB / 0.5365 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.4259, allocations: 98.88 kB / 0.5366 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.4272, allocations: 0.5033 MB / 0.5371 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003889/0.4276, allocations: 401.9 kB / 0.5375 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006517/0.4283, allocations: 0.6507 MB / 0.5381 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00231/0.4306, allocations: 1.71 MB / 0.5398 GB, free: 2.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.4306, allocations: 0 / 0.5398 GB, free: 2.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4306, allocations: 0 / 0.5398 GB, free: 2.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.363e-05/0.4306, allocations: 1 kB / 0.5398 GB, free: 2.699 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.003106/0.4337, allocations: 1.595 MB / 0.5414 GB, free: 1.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4338, allocations: 9.188 kB / 0.5414 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001893/0.4339, allocations: 156 kB / 0.5415 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004568/0.4344, allocations: 165.5 kB / 0.5417 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.4358, allocations: 0.7845 MB / 0.5424 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.4359, allocations: 300.9 kB / 0.5427 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.436, allocations: 97.12 kB / 0.5428 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.4379, allocations: 1.397 MB / 0.5442 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.4379, allocations: 6.719 kB / 0.5442 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.4381, allocations: 48.27 kB / 0.5442 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.977e-05/0.4381, allocations: 58.45 kB / 0.5443 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.44, allocations: 1.074 MB / 0.5453 GB, free: 15.39 MB / 398.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.00944/0.4495, allocations: 7.025 MB / 0.5522 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.4512, allocations: 0.7495 MB / 0.5529 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007216/0.4519, allocations: 412.2 kB / 0.5533 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002598/0.4545, allocations: 1.155 MB / 0.5544 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.4546, allocations: 48.69 kB / 0.5545 GB, free: 7.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.084e-06/0.4546, allocations: 4 kB / 0.5545 GB, free: 7.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.006979/0.4615, allocations: 2.814 MB / 0.5572 GB, free: 6.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.4616, allocations: 147.1 kB / 0.5574 GB, free: 5.895 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.4631, allocations: 0.9351 MB / 0.5583 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.4633, allocations: 41.39 kB / 0.5583 GB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005485/0.4638, allocations: 0.6079 MB / 0.5589 GB, free: 4.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.4642, allocations: 307.5 kB / 0.5592 GB, free: 4.504 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003829/0.4645, allocations: 249.2 kB / 0.5595 GB, free: 4.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.4648, allocations: 362.2 kB / 0.5598 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000757/0.4655, allocations: 425.7 kB / 0.5602 GB, free: 3.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.4667, allocations: 0.9289 MB / 0.5611 GB, free: 2.906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01109/0.4778, allocations: 3.035 MB / 0.5641 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.4778, allocations: 5.438 kB / 0.5641 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003002/0.4808, allocations: 1.621 MB / 0.5657 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.4808, allocations: 12.97 kB / 0.5657 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.4808, allocations: 19.94 kB / 0.5657 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000914/0.4818, allocations: 363.3 kB / 0.5661 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.4828, allocations: 288.3 kB / 0.5663 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00405/0.4868, allocations: 4.083 MB / 0.5703 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.4879, allocations: 56.12 kB / 0.5704 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.488, allocations: 63.98 kB / 0.5704 GB, free: 10.8 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.0007195/0.4887, allocations: 345.1 kB / 0.5708 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.489, allocations: 131.2 kB / 0.5709 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003215/0.4922, allocations: 1.52 MB / 0.5724 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.4922, allocations: 12 kB / 0.5724 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4922, allocations: 4 kB / 0.5724 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.4922, allocations: 7.922 kB / 0.5724 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004393/0.4966, allocations: 2.4 MB / 0.5747 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.4966, allocations: 0 / 0.5747 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000817/0.4974, allocations: 164 kB / 0.5749 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008326/0.4983, allocations: 352.7 kB / 0.5752 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.015e-05/0.4983, allocations: 27.92 kB / 0.5753 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004138/0.5025, allocations: 4.079 MB / 0.5792 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.5025, allocations: 4 kB / 0.5792 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003835/0.5063, allocations: 1.936 MB / 0.5811 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006756/0.507, allocations: 211.1 kB / 0.5813 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.5071, allocations: 20 kB / 0.5813 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005881/0.5077, allocations: 35.92 kB / 0.5814 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.5079, allocations: 92.77 kB / 0.5815 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-05/0.508, allocations: 35.98 kB / 0.5815 GB, free: 15.08 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009486/0.509, allocations: 0.6372 MB / 0.5821 GB, free: 14.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.509, allocations: 0 / 0.5821 GB, free: 14.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001432/0.5104, allocations: 343.8 kB / 0.5825 GB, free: 14.1 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.004275/0.5147, allocations: 2.669 MB / 0.5851 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002539/0.5172, allocations: 1.337 MB / 0.5864 GB, free: 10.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.5172, allocations: 4 kB / 0.5864 GB, free: 10.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.5186, allocations: 0.7728 MB / 0.5871 GB, free: 9.219 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002303/0.5209, allocations: 0.4945 MB / 0.5876 GB, free: 8.738 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/0.5386, allocations: 10.54 MB / 0.5979 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008527/0.5394, allocations: 1.141 MB / 0.599 GB, free: 12.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.5405, allocations: 312.8 kB / 0.5993 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006675/0.5412, allocations: 479.3 kB / 0.5998 GB, free: 11.64 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5412, allocations: 0 / 0.5998 GB, free: 11.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09136/0.6325, allocations: 35.29 MB / 0.6342 GB, free: 8.641 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/15.77, allocations: 3.984 kB / 0.6342 GB, free: 8.637 MB / 478.1 MB " [Timeout remaining time 644] (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.758674112003064] Failed to read output from testmodel.py, exit status != 0: 15.913565005001146 15.943741728 15.50761686 Calling exit ...