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.001298/0.001298, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009523/0.0009523, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9183/0.9183, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.03451/0.03451, allocations: 8.61 MB / 267.8 MB, free: 5.129 MB / 250.7 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: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 396.3 MB, free: 1.445 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.757e-05, allocations: 2.281 kB / 396.3 MB, free: 1.441 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.02085/0.02087, allocations: 23.08 MB / 419.4 MB, free: 10.27 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006673/0.02755, allocations: 6.352 MB / 425.7 MB, free: 3.895 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008706/0.02842, allocations: 75.25 kB / 425.8 MB, free: 3.82 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009104/0.02933, allocations: 436.7 kB / 426.2 MB, free: 3.391 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.03126, allocations: 1.227 MB / 427.4 MB, free: 2.156 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002648/0.0339, allocations: 1.382 MB / 428.8 MB, free: 0.7812 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002376/0.03628, allocations: 2.682 MB / 431.5 MB, free: 14.09 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.0373, allocations: 0.6839 MB / 432.2 MB, free: 13.39 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00163/0.03893, allocations: 1.445 MB / 433.6 MB, free: 11.94 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008835/0.03981, allocations: 0.8374 MB / 434.5 MB, free: 11.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.03996, allocations: 100 kB / 434.6 MB, free: 11 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008067/0.04077, allocations: 427.1 kB / 435 MB, free: 10.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002663/0.04103, allocations: 414.6 kB / 435.4 MB, free: 10.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003502/0.04138, allocations: 462.8 kB / 435.8 MB, free: 9.727 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001941/0.04332, allocations: 1.733 MB / 437.6 MB, free: 7.988 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.04333, allocations: 0 / 437.6 MB, free: 7.988 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.04333, allocations: 0 / 437.6 MB, free: 7.988 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.04334, allocations: 7.938 kB / 437.6 MB, free: 7.98 MB / 410.7 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.002097/0.04544, allocations: 1.574 MB / 439.2 MB, free: 6.371 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.04548, allocations: 12.03 kB / 439.2 MB, free: 6.359 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001434/0.04562, allocations: 152.2 kB / 439.3 MB, free: 6.203 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.04591, allocations: 168 kB / 439.5 MB, free: 6.039 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.04699, allocations: 0.7898 MB / 440.3 MB, free: 5.219 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.04716, allocations: 300.2 kB / 440.6 MB, free: 4.879 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.04726, allocations: 92.36 kB / 440.7 MB, free: 4.789 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.04884, allocations: 1.762 MB / 442.4 MB, free: 2.797 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.04886, allocations: 11.88 kB / 442.4 MB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.152e-05/0.04893, allocations: 40 kB / 442.5 MB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.125e-05/0.04899, allocations: 57.97 kB / 442.5 MB, free: 2.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.05052, allocations: 1.073 MB / 443.6 MB, free: 1.613 MB / 410.7 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.1494/0.1999, allocations: 6.111 MB / 449.7 MB, free: 83.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.2009, allocations: 0.7495 MB / 450.5 MB, free: 83.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003904/0.2013, allocations: 413.3 kB / 450.9 MB, free: 83.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001274/0.2026, allocations: 1.036 MB / 451.9 MB, free: 82.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.2026, allocations: 46.06 kB / 451.9 MB, free: 82.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.815e-06/0.2026, allocations: 0 / 451.9 MB, free: 82.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.003742/0.2063, allocations: 2.814 MB / 454.8 MB, free: 81.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.2064, allocations: 139.5 kB / 454.9 MB, free: 81.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006758/0.2071, allocations: 0.97 MB / 455.9 MB, free: 81.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.2071, allocations: 44.77 kB / 455.9 MB, free: 81.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.2073, allocations: 0.6093 MB / 456.5 MB, free: 80.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.2074, allocations: 301.5 kB / 456.8 MB, free: 80.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.2076, allocations: 256.2 kB / 457.1 MB, free: 80.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.722e-05/0.2077, allocations: 356.3 kB / 457.4 MB, free: 80.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.2081, allocations: 420.6 kB / 457.8 MB, free: 80.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/0.2086, allocations: 1.007 MB / 458.8 MB, free: 79.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005332/0.2139, allocations: 3.038 MB / 461.9 MB, free: 77.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.2139, allocations: 3.156 kB / 461.9 MB, free: 77.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.001678/0.2156, allocations: 1.619 MB / 463.5 MB, free: 77.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.2156, allocations: 11.66 kB / 463.5 MB, free: 77.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.2157, allocations: 18 kB / 463.5 MB, free: 77.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005052/0.2162, allocations: 367.9 kB / 463.9 MB, free: 77.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.2167, allocations: 282.5 kB / 464.2 MB, free: 77.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.2185, allocations: 4.077 MB / 468.2 MB, free: 73.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005359/0.219, allocations: 51.77 kB / 468.3 MB, free: 73.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.395e-05/0.2191, allocations: 66.34 kB / 468.3 MB, free: 73.56 MB / 410.7 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.0004236/0.2195, allocations: 342.5 kB / 468.7 MB, free: 73.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2196, allocations: 123.6 kB / 468.8 MB, free: 73.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.2212, allocations: 1.517 MB / 470.3 MB, free: 72.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.2212, allocations: 12.7 kB / 470.3 MB, free: 72.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.2212, allocations: 4 kB / 470.3 MB, free: 72.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.2212, allocations: 10.5 kB / 470.3 MB, free: 72.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.2235, allocations: 2.279 MB / 472.6 MB, free: 71.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.2235, allocations: 3.344 kB / 472.6 MB, free: 71.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.2239, allocations: 161.4 kB / 472.8 MB, free: 71.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004583/0.2243, allocations: 346.3 kB / 473.1 MB, free: 71.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.2244, allocations: 21.92 kB / 473.1 MB, free: 71.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001713/0.2261, allocations: 4.071 MB / 477.2 MB, free: 67.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2261, allocations: 6.984 kB / 477.2 MB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.2281, allocations: 1.937 MB / 479.2 MB, free: 67.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003347/0.2284, allocations: 208.9 kB / 479.4 MB, free: 66.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.866e-05/0.2285, allocations: 25.09 kB / 479.4 MB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.2288, allocations: 30.42 kB / 479.4 MB, free: 66.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.2289, allocations: 94.94 kB / 479.5 MB, free: 66.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-05/0.229, allocations: 43.44 kB / 479.6 MB, free: 66.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007158/0.2297, allocations: 0.6372 MB / 480.2 MB, free: 66.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2297, allocations: 0 / 480.2 MB, free: 66.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00113/0.2308, allocations: 347.6 kB / 480.5 MB, free: 66.52 MB / 410.7 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.002363/0.2332, allocations: 2.66 MB / 483.2 MB, free: 65.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.2347, allocations: 1.338 MB / 484.5 MB, free: 64.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.2347, allocations: 3.25 kB / 484.5 MB, free: 64.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007001/0.2354, allocations: 0.7784 MB / 485.3 MB, free: 64.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.2368, allocations: 497.4 kB / 485.8 MB, free: 63.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.2485, allocations: 10.47 MB / 496.3 MB, free: 58.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.2489, allocations: 0.5514 MB / 496.8 MB, free: 58.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000828/0.2498, allocations: 318.2 kB / 497.1 MB, free: 57.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/0.2502, allocations: 475.8 kB / 497.6 MB, free: 57.65 MB / 410.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2502, allocations: 0 / 497.6 MB, free: 57.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05595/0.3061, allocations: 35.96 MB / 0.521 GB, free: 29.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.854/9.16, allocations: 11 kB / 0.5211 GB, free: 29.82 MB / 410.7 MB " [Timeout remaining time 651] (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 os._exit(0), Time elapsed: 11.084221170283854] Failed to read output from testmodel.py, exit status != 0: 9.271731844171882 9.277071923 9.232238848 Calling exit ...