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.001327/0.001327, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001416/0.001416, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.406/1.406, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.06184/0.06184, allocations: 11.33 MB / 320.9 MB, free: 14.07 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",fmuType="cs",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.001914/0.001914, allocations: 64.34 kB / 447.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1027, allocations: 56 MB / 0.492 GB, free: 2.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.02721/0.1299, allocations: 25.42 MB / 0.5168 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.1406, allocations: 6.858 MB / 0.5235 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.142, allocations: 75.25 kB / 0.5236 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.1432, allocations: 448.8 kB / 0.524 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003406/0.1466, allocations: 1.17 MB / 0.5251 GB, free: 76 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003957/0.1506, allocations: 1.315 MB / 0.5264 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004239/0.1548, allocations: 2.632 MB / 0.529 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.156, allocations: 0.703 MB / 0.5297 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002272/0.1583, allocations: 1.109 MB / 0.5308 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.1602, allocations: 0.9726 MB / 0.5317 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002595/0.1605, allocations: 100 kB / 0.5318 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.1622, allocations: 499.3 kB / 0.5323 GB, free: 8.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000519/0.1628, allocations: 394.6 kB / 0.5327 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009483/0.1637, allocations: 0.6529 MB / 0.5333 GB, free: 7.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003153/0.1669, allocations: 1.704 MB / 0.535 GB, free: 5.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1669, allocations: 0 / 0.535 GB, free: 5.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1669, allocations: 4 kB / 0.535 GB, free: 5.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.1669, allocations: 0 / 0.535 GB, free: 5.98 MB / 398.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.003349/0.1702, allocations: 1.669 MB / 0.5366 GB, free: 4.258 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1703, allocations: 8.031 kB / 0.5366 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.092e-05/0.1703, allocations: 26.19 kB / 0.5366 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.1705, allocations: 156.2 kB / 0.5368 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004286/0.1709, allocations: 160 kB / 0.5369 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.1723, allocations: 0.8822 MB / 0.5378 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.1726, allocations: 219.1 kB / 0.538 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.1727, allocations: 99.92 kB / 0.5381 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.1749, allocations: 1.389 MB / 0.5394 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/0.175, allocations: 11.89 kB / 0.5395 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.1751, allocations: 40 kB / 0.5395 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.21e-05/0.1752, allocations: 53.98 kB / 0.5396 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.177, allocations: 1.069 MB / 0.5406 GB, free: 15.94 MB / 414.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.008807/0.1858, allocations: 7.093 MB / 0.5475 GB, free: 8.469 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.1876, allocations: 0.759 MB / 0.5483 GB, free: 7.703 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007458/0.1883, allocations: 415.1 kB / 0.5487 GB, free: 7.297 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002992/0.1913, allocations: 2.308 MB / 0.5509 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.1914, allocations: 43.22 kB / 0.551 GB, free: 4.637 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 2.254e-06/0.1914, allocations: 0 / 0.551 GB, free: 4.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.00741/0.1988, allocations: 3.117 MB / 0.554 GB, free: 1.406 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/0.1989, allocations: 145.5 kB / 0.5541 GB, free: 1.234 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.2001, allocations: 0.9393 MB / 0.5551 GB, free: 284 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.151e-05/0.2002, allocations: 41.7 kB / 0.5551 GB, free: 236 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005196/0.2007, allocations: 0.6091 MB / 0.5557 GB, free: 15.61 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.201, allocations: 309.4 kB / 0.556 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003882/0.2014, allocations: 254.8 kB / 0.5562 GB, free: 15.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.2016, allocations: 361.9 kB / 0.5566 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007625/0.2023, allocations: 418.4 kB / 0.557 GB, free: 14.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.2035, allocations: 0.9243 MB / 0.5579 GB, free: 13.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/0.2149, allocations: 3.041 MB / 0.5608 GB, free: 9.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.2149, allocations: 4 kB / 0.5608 GB, free: 9.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003167/0.2181, allocations: 1.616 MB / 0.5624 GB, free: 8.215 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.2181, allocations: 15.94 kB / 0.5624 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/0.2181, allocations: 16 kB / 0.5625 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009028/0.219, allocations: 366.9 kB / 0.5628 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009739/0.22, allocations: 283.5 kB / 0.5631 GB, free: 7.539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004196/0.2242, allocations: 4.297 MB / 0.5673 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008935/0.2251, allocations: 52.03 kB / 0.5673 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.2252, allocations: 63.98 kB / 0.5674 GB, free: 2.832 MB / 430.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.0006561/0.2258, allocations: 340.1 kB / 0.5677 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/0.2261, allocations: 131.1 kB / 0.5678 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.2292, allocations: 1.52 MB / 0.5693 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.2292, allocations: 8 kB / 0.5693 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2292, allocations: 3.938 kB / 0.5693 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.2292, allocations: 11.97 kB / 0.5693 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.2332, allocations: 2.412 MB / 0.5717 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2332, allocations: 0 / 0.5717 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00077/0.2339, allocations: 167.8 kB / 0.5719 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000795/0.2347, allocations: 354.5 kB / 0.5722 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.421e-05/0.2348, allocations: 24.03 kB / 0.5722 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004112/0.2389, allocations: 4.289 MB / 0.5764 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2389, allocations: 0 / 0.5764 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/0.2425, allocations: 1.932 MB / 0.5783 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.243, allocations: 284.1 kB / 0.5786 GB, free: 6.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.2431, allocations: 27.94 kB / 0.5786 GB, free: 6.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.2437, allocations: 35.97 kB / 0.5786 GB, free: 6.848 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.2439, allocations: 84.89 kB / 0.5787 GB, free: 6.766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-05/0.244, allocations: 39.97 kB / 0.5787 GB, free: 6.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009074/0.2449, allocations: 0.6293 MB / 0.5794 GB, free: 6.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2449, allocations: 0 / 0.5794 GB, free: 6.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001379/0.2463, allocations: 355.7 kB / 0.5797 GB, free: 5.742 MB / 446.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.004288/0.2506, allocations: 2.646 MB / 0.5823 GB, free: 3.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002608/0.2532, allocations: 1.349 MB / 0.5836 GB, free: 1.676 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2532, allocations: 0 / 0.5836 GB, free: 1.676 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.2545, allocations: 0.7682 MB / 0.5843 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.2567, allocations: 0.4976 MB / 0.5848 GB, free: 404 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2253/0.482, allocations: 10.53 MB / 0.5951 GB, free: 85.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007207/0.4827, allocations: 1.142 MB / 0.5962 GB, free: 85.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.4838, allocations: 306.1 kB / 0.5965 GB, free: 85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005408/0.4843, allocations: 477.5 kB / 0.597 GB, free: 84.66 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4843, allocations: 0 / 0.597 GB, free: 84.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0609/0.5452, allocations: 34.27 MB / 0.6304 GB, free: 56.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.55, allocations: 15.53 kB / 0.6305 GB, free: 56.83 MB / 446.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 & /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 os._exit(0), Time elapsed: 17.2762651820085] Failed to read output from testmodel.py, exit status != 0: 14.720467936014757 14.73644376 14.566396676 Calling exit ...