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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 110 kB / 18.94 MB, free: 2.789 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 192.7 kB / 22.23 MB, free: 5.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.624/1.624, allocations: 225.6 MB / 251 MB, free: 13.01 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.0649/0.0649, allocations: 11.33 MB / 317.6 MB, free: 13.75 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.89 kB / 444.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1346, allocations: 54.89 MB / 499.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.03131/0.1659, allocations: 25.5 MB / 0.5123 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3057/0.4716, allocations: 6.887 MB / 0.5191 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.4733, allocations: 72.52 kB / 0.5191 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.4747, allocations: 447.1 kB / 0.5196 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.4784, allocations: 1.182 MB / 0.5207 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004927/0.4834, allocations: 1.351 MB / 0.522 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005028/0.4884, allocations: 2.664 MB / 0.5246 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.4901, allocations: 0.6872 MB / 0.5253 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003028/0.4931, allocations: 1.119 MB / 0.5264 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002144/0.4952, allocations: 0.962 MB / 0.5273 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002829/0.4955, allocations: 99.06 kB / 0.5274 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.4973, allocations: 481.5 kB / 0.5279 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000549/0.4979, allocations: 402.5 kB / 0.5283 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001051/0.4989, allocations: 0.6528 MB / 0.5289 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004507/0.5034, allocations: 1.676 MB / 0.5306 GB, free: 4.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.5034, allocations: 0.7031 kB / 0.5306 GB, free: 4.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5034, allocations: 5.031 kB / 0.5306 GB, free: 4.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.733e-05/0.5035, allocations: 0 / 0.5306 GB, free: 4.723 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.004232/0.5077, allocations: 1.587 MB / 0.5321 GB, free: 3.953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.5077, allocations: 14.95 kB / 0.5321 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005391/0.5083, allocations: 164 kB / 0.5323 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002006/0.5103, allocations: 0.7954 MB / 0.5331 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.5105, allocations: 221.4 kB / 0.5333 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.5107, allocations: 95.72 kB / 0.5334 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/0.5131, allocations: 1.394 MB / 0.5347 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.545e-05/0.5132, allocations: 9.156 kB / 0.5347 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.5133, allocations: 40.56 kB / 0.5348 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.852e-05/0.5134, allocations: 53.03 kB / 0.5348 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002007/0.5154, allocations: 1.08 MB / 0.5359 GB, free: 2.914 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.009028/0.5244, allocations: 7.045 MB / 0.5428 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.5262, allocations: 0.7473 MB / 0.5435 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007567/0.5269, allocations: 417.6 kB / 0.5439 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002847/0.5298, allocations: 1.17 MB / 0.545 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.5298, allocations: 43.84 kB / 0.5451 GB, free: 13.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.615e-06/0.5298, allocations: 0 / 0.5451 GB, free: 13.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.007923/0.5378, allocations: 2.819 MB / 0.5478 GB, free: 12.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.5379, allocations: 138 kB / 0.548 GB, free: 12.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.5396, allocations: 0.9353 MB / 0.5489 GB, free: 12.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.5397, allocations: 42.92 kB / 0.5489 GB, free: 12.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007064/0.5404, allocations: 0.612 MB / 0.5495 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/0.5408, allocations: 305.3 kB / 0.5498 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000473/0.5413, allocations: 257 kB / 0.55 GB, free: 11.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002773/0.5416, allocations: 355.5 kB / 0.5504 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000917/0.5425, allocations: 420.6 kB / 0.5508 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.5438, allocations: 0.9299 MB / 0.5517 GB, free: 9.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.5559, allocations: 3.037 MB / 0.5547 GB, free: 7.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.5559, allocations: 5.469 kB / 0.5547 GB, free: 7.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00333/0.5593, allocations: 1.619 MB / 0.5562 GB, free: 7.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.5593, allocations: 14.5 kB / 0.5563 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.5593, allocations: 22.84 kB / 0.5563 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008775/0.5602, allocations: 363.9 kB / 0.5566 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009608/0.5612, allocations: 280.7 kB / 0.5569 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004308/0.5655, allocations: 4.094 MB / 0.5609 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.5667, allocations: 48.25 kB / 0.5609 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.5668, allocations: 68.77 kB / 0.561 GB, free: 2.922 MB / 398.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.0008023/0.5676, allocations: 339.4 kB / 0.5613 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.5678, allocations: 124.3 kB / 0.5614 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/0.5712, allocations: 1.53 MB / 0.5629 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.5712, allocations: 8 kB / 0.5629 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5712, allocations: 3.984 kB / 0.563 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.5712, allocations: 7.922 kB / 0.563 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004758/0.576, allocations: 2.394 MB / 0.5653 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.576, allocations: 4 kB / 0.5653 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008407/0.5768, allocations: 163.8 kB / 0.5655 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008822/0.5777, allocations: 354.6 kB / 0.5658 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.192e-05/0.5778, allocations: 20 kB / 0.5658 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/0.5818, allocations: 4.089 MB / 0.5698 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5818, allocations: 0 / 0.5698 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004094/0.5859, allocations: 1.943 MB / 0.5717 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008968/0.5868, allocations: 211 kB / 0.5719 GB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.587, allocations: 20 kB / 0.5719 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006559/0.5876, allocations: 39.91 kB / 0.572 GB, free: 7.688 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.5879, allocations: 93.66 kB / 0.5721 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.443e-05/0.5879, allocations: 43.91 kB / 0.5721 GB, free: 7.555 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009679/0.5889, allocations: 0.6294 MB / 0.5727 GB, free: 6.918 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5889, allocations: 0 / 0.5727 GB, free: 6.918 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001589/0.5905, allocations: 351.7 kB / 0.573 GB, free: 6.574 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.0007798/0.5913, allocations: 292.7 kB / 0.5733 GB, free: 6.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002836/0.5941, allocations: 1.344 MB / 0.5746 GB, free: 4.938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.5941, allocations: 0 / 0.5746 GB, free: 4.938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.5956, allocations: 0.7766 MB / 0.5754 GB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.5981, allocations: 0.4963 MB / 0.5759 GB, free: 3.652 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004933/0.603, allocations: 2.428 MB / 0.5782 GB, free: 1.195 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009892/0.604, allocations: 1.137 MB / 0.5794 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001214/0.6052, allocations: 310 kB / 0.5797 GB, free: 15.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.6055, allocations: 111.4 kB / 0.5798 GB, free: 15.62 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6055, allocations: 0 / 0.5798 GB, free: 15.62 MB / 430.1 MB Notification: Performance of Templates: time 0.04537/0.6509, allocations: 23.51 MB / 0.6027 GB, free: 8.395 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.makefile [Timeout 660] (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 & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.251704381778836] Failed to read output from testmodel.py, exit status != 0: 0.6590298600494862 0.674532771 0.16781011399999995 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f211528d7b0>