Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.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.001127/0.001127, 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.0008218/0.0008218, 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.9006/0.9006, allocations: 177.2 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.03492/0.03492, allocations: 8.609 MB / 267.8 MB, free: 5.133 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.LevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.LevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 396.3 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.353e-05/1.473e-05, allocations: 6.281 kB / 396.3 MB, free: 264 kB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.1638/0.1638, allocations: 20.22 MB / 416.5 MB, free: 15.14 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006171/0.1699, allocations: 6.078 MB / 422.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005531/0.1705, allocations: 51.59 kB / 422.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007732/0.1713, allocations: 399.8 kB / 423 MB, free: 14.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001719/0.173, allocations: 1.163 MB / 424.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.1754, allocations: 1.248 MB / 425.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002092/0.1775, allocations: 2.487 MB / 427.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008487/0.1784, allocations: 0.6177 MB / 428.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.18, allocations: 1.333 MB / 429.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009861/0.181, allocations: 0.7966 MB / 430.7 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.1811, allocations: 91.75 kB / 430.8 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.1821, allocations: 454.4 kB / 431.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.1824, allocations: 395.5 kB / 431.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000388/0.1828, allocations: 422.1 kB / 432 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.1845, allocations: 1.675 MB / 433.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1845, allocations: 0 / 433.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1845, allocations: 0 / 433.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.1845, allocations: 5.5 kB / 433.7 MB, free: 10.66 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00222/0.1868, allocations: 1.44 MB / 435.1 MB, free: 9.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1868, allocations: 8.938 kB / 435.1 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/0.1869, allocations: 141.1 kB / 435.3 MB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002763/0.1872, allocations: 137.3 kB / 435.4 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007927/0.188, allocations: 0.6932 MB / 436.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.1881, allocations: 353 kB / 436.4 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.1882, allocations: 81.05 kB / 436.5 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.1895, allocations: 1.743 MB / 438.3 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.1895, allocations: 2.844 kB / 438.3 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.937e-05/0.1896, allocations: 48.05 kB / 438.3 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-05/0.1897, allocations: 61.84 kB / 438.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.1908, allocations: 0.991 MB / 439.4 MB, free: 6.488 MB / 330.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.003382/0.1942, allocations: 5.133 MB / 444.5 MB, free: 2.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007646/0.195, allocations: 0.6785 MB / 445.2 MB, free: 1.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.1953, allocations: 372.4 kB / 445.5 MB, free: 1.691 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00105/0.1964, allocations: 0.9917 MB / 446.5 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005883/0.197, allocations: 0.8745 MB / 447.4 MB, free: 224 kB / 330.7 MB Notification: Performance of pre-optimization done (n=71): time 1.953e-06/0.197, allocations: 2.656 kB / 447.4 MB, free: 224 kB / 330.7 MB Notification: Performance of matching and sorting (n=76): time 0.003811/0.2008, allocations: 2.684 MB / 450.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.2009, allocations: 248 kB / 450.3 MB, free: 13.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009582/0.2018, allocations: 0.8601 MB / 451.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.195e-05/0.2019, allocations: 41.7 kB / 451.2 MB, free: 13.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.2022, allocations: 0.5387 MB / 451.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.2023, allocations: 265.8 kB / 452 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.2025, allocations: 230.8 kB / 452.3 MB, free: 12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.2026, allocations: 357.9 kB / 452.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004806/0.2031, allocations: 406.3 kB / 453 MB, free: 11.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000759/0.2039, allocations: 1.064 MB / 454.1 MB, free: 9.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005144/0.209, allocations: 2.873 MB / 456.9 MB, free: 6.828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.209, allocations: 4 kB / 456.9 MB, free: 6.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002081/0.2111, allocations: 1.569 MB / 458.5 MB, free: 5.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.2111, allocations: 12 kB / 458.5 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.2111, allocations: 18.81 kB / 458.5 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004788/0.2116, allocations: 363.6 kB / 458.9 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.212, allocations: 251.5 kB / 459.1 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/0.2142, allocations: 4.077 MB / 463.2 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004448/0.2146, allocations: 64 kB / 463.3 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.2147, allocations: 67.11 kB / 463.3 MB, free: 156 kB / 346.7 MB Warning: Assuming fixed start value for the following 8 variables: PI_Level.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real PI_Level.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real sub.Yfp:DISCRETE(fixed = true ) \"floating point converted output\" type: Integer 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 PI_Level.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real div.Yfp:DISCRETE(fixed = true ) \"floating point converted output\" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 27 (PI_Level.FBout,$PRE.PI_Level.FBout,$PRE.PI_Level.cs,PI_Level.cs,$PRE.PI_Level.satin,PI_Level.satin,$whenCondition1,$PRE.sub.Yfp,sub.Yfp,div.U1fp,$PRE.PI_Level.CS,sub.U1fp,tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Level.CS,PI_Level.TS_in,$PRE.div.Yfp,div.U2fp,div.Yfp,sub.U2fp,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 (139): * Single equations (assignments): 136 * 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.0004055/0.2151, allocations: 352.6 kB / 463.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2152, allocations: 115.3 kB / 463.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001972/0.2172, allocations: 1.442 MB / 465.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2172, allocations: 8 kB / 465.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2172, allocations: 4 kB / 465.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.2172, allocations: 3.984 kB / 465.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.2196, allocations: 2.18 MB / 467.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2196, allocations: 0 / 467.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.2199, allocations: 128.1 kB / 467.6 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004272/0.2203, allocations: 350.3 kB / 467.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/0.2203, allocations: 19.98 kB / 467.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/0.2224, allocations: 4.062 MB / 472 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2224, allocations: 0 / 472 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.2246, allocations: 1.859 MB / 473.8 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.2249, allocations: 199.1 kB / 474 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.535e-05/0.225, allocations: 23.98 kB / 474.1 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.2253, allocations: 35.97 kB / 474.1 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.2254, allocations: 92.38 kB / 474.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.2255, allocations: 35.98 kB / 474.2 MB, free: 4.871 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004861/0.2259, allocations: 0.5784 MB / 474.8 MB, free: 4.281 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2259, allocations: 0 / 474.8 MB, free: 4.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009152/0.2269, allocations: 351.7 kB / 475.1 MB, free: 3.938 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (tank.level,tank.medium.T,actuator.y) * Number of discrete variables: 15 ($whenCondition1,PI_Level.CS,PI_Level.FBout,PI_Level.cs,PI_Level.satin,tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3],div.U1fp,div.Yfp,sub.U1fp,sub.Yfp) * Number of discrete states: 2 (PI_Level.FBout,PI_Level.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 6 * 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.002533/0.2294, allocations: 2.589 MB / 477.7 MB, free: 1.289 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.2308, allocations: 1.275 MB / 479 MB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2308, allocations: 4.062 kB / 479 MB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009738/0.2318, allocations: 0.747 MB / 479.8 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.2329, allocations: 490.5 kB / 480.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009287/0.2422, allocations: 9.606 MB / 489.8 MB, free: 4.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.2425, allocations: 495.8 kB / 490.3 MB, free: 4.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006268/0.2432, allocations: 297.8 kB / 490.6 MB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003544/0.2435, allocations: 400.4 kB / 491 MB, free: 3.344 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.2435, allocations: 0 / 491 MB, free: 3.344 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04532/0.2888, allocations: 34.55 MB / 0.5132 GB, free: 1.273 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.948/9.237, allocations: 14.77 kB / 0.5133 GB, free: 1.262 MB / 410.7 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl_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_LevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 32.96669000852853] Failed to read output from testmodel.py, exit status != 0: 9.342338326387107 9.352354181 9.165666745 Calling exit ...