Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 252 MB / 267.6 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009684/0.0009683, allocations: 175 kB / 327.3 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.829/1.829, allocations: 205.4 MB / 0.5783 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009539/0.0009541, allocations: 99.77 kB / 0.6829 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 12.48 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2249, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.7321/0.9571, allocations: 176.8 MB / 1.074 GB, free: 4.086 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.01148/0.9686, allocations: 6.625 MB / 1.08 GB, free: 3.895 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.9705, allocations: 43.16 kB / 1.08 GB, free: 3.891 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.9722, allocations: 471 kB / 1.08 GB, free: 3.887 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.005989/0.9782, allocations: 1.684 MB / 1.082 GB, free: 3.816 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.00386/0.9821, allocations: 1.074 MB / 1.083 GB, free: 3.77 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.005902/0.988, allocations: 3.188 MB / 1.086 GB, free: 3.758 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.9894, allocations: 0.6677 MB / 1.087 GB, free: 3.676 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.9916, allocations: 0.9299 MB / 1.088 GB, free: 3.676 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.993, allocations: 0.804 MB / 1.089 GB, free: 3.668 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.9932, allocations: 41.19 kB / 1.089 GB, free: 3.668 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003892/0.9971, allocations: 1.224 MB / 1.09 GB, free: 3.645 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0003827/0.9975, allocations: 304.9 kB / 1.09 GB, free: 3.645 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.000638/0.9981, allocations: 237.8 kB / 1.09 GB, free: 19.61 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.002149/1, allocations: 1.628 MB / 1.092 GB, free: 19.49 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/1, allocations: 1 kB / 1.092 GB, free: 19.49 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.004e-06/1, allocations: 1.75 kB / 1.092 GB, free: 19.49 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.504e-05/1, allocations: 0 / 1.092 GB, free: 19.49 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003442/1.004, allocations: 1.424 MB / 1.093 GB, free: 18.66 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/1.004, allocations: 9.062 kB / 1.093 GB, free: 18.66 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003025/1.007, allocations: 0.6005 MB / 1.094 GB, free: 18.57 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002301/1.009, allocations: 0.9682 MB / 1.095 GB, free: 18.27 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00115/1.01, allocations: 318 kB / 1.095 GB, free: 18.23 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/1.01, allocations: 71.91 kB / 1.095 GB, free: 18.23 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/1.013, allocations: 1.169 MB / 1.096 GB, free: 18.13 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/1.013, allocations: 0 / 1.096 GB, free: 18.13 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.023e-05/1.013, allocations: 32.94 kB / 1.096 GB, free: 18.13 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/1.013, allocations: 30.06 kB / 1.096 GB, free: 18.13 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003305/1.016, allocations: 1.331 MB / 1.098 GB, free: 18.09 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005646/1.022, allocations: 3.073 MB / 1.101 GB, free: 17.32 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/1.024, allocations: 0.7378 MB / 1.101 GB, free: 17.28 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007644/1.025, allocations: 450.8 kB / 1.102 GB, free: 17.26 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001027/1.026, allocations: 1.026 MB / 1.103 GB, free: 16.13 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009724/1.027, allocations: 0.5313 MB / 1.103 GB, free: 16.03 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=59): time 2.194e-06/1.027, allocations: 0 / 1.103 GB, free: 16.03 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59): time 0.003012/1.03, allocations: 1.29 MB / 1.105 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/1.03, allocations: 112.7 kB / 1.105 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002079/1.032, allocations: 1.209 MB / 1.106 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.384e-05/1.032, allocations: 35.55 kB / 1.106 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/1.032, allocations: 432.4 kB / 1.106 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/1.032, allocations: 197.8 kB / 1.107 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/1.033, allocations: 13.22 kB / 1.107 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001341/1.033, allocations: 339.4 kB / 1.107 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/1.034, allocations: 499.6 kB / 1.107 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/1.035, allocations: 0.6447 MB / 1.108 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/1.037, allocations: 0.5488 MB / 1.109 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/1.037, allocations: 0 / 1.109 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003093/1.04, allocations: 1.306 MB / 1.11 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.27e-05/1.04, allocations: 39.89 kB / 1.11 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.04, allocations: 3.625 kB / 1.11 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.923e-05/1.04, allocations: 9.188 kB / 1.11 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009449/1.041, allocations: 217.9 kB / 1.11 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/1.041, allocations: 8.438 kB / 1.11 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/1.043, allocations: 305.1 kB / 1.11 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.462e-05/1.043, allocations: 32.97 kB / 1.11 GB, free: 14.51 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005772/1.043, allocations: 338.5 kB / 1.111 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/1.043, allocations: 120.4 kB / 1.111 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/1.045, allocations: 1.057 MB / 1.112 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/1.045, allocations: 15.25 kB / 1.112 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.045, allocations: 0 / 1.112 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/1.045, allocations: 7.094 kB / 1.112 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004566/1.05, allocations: 3.229 MB / 1.115 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/1.05, allocations: 7.5 kB / 1.115 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005821/1.051, allocations: 124.1 kB / 1.115 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.52e-05/1.051, allocations: 15.42 kB / 1.115 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.687e-05/1.051, allocations: 32.67 kB / 1.115 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.391e-05/1.051, allocations: 18.52 kB / 1.115 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/1.051, allocations: 12.73 kB / 1.115 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/1.053, allocations: 1.316 MB / 1.117 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005897/1.053, allocations: 333 kB / 1.117 GB, free: 12.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/1.054, allocations: 29.45 kB / 1.117 GB, free: 12.76 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/1.055, allocations: 132.4 kB / 1.117 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/1.055, allocations: 57.5 kB / 1.117 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.69e-05/1.055, allocations: 47.62 kB / 1.117 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001605/1.057, allocations: 0.8719 MB / 1.118 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.2e-07/1.057, allocations: 0 / 1.118 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001356/1.058, allocations: 301.7 kB / 1.118 GB, free: 12.6 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008452/1.059, allocations: 337.7 kB / 1.119 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003097/1.062, allocations: 1.085 MB / 1.12 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.062, allocations: 1.375 kB / 1.12 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001261/1.063, allocations: 0.542 MB / 1.12 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/1.066, allocations: 0.548 MB / 1.121 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/1.072, allocations: 2.346 MB / 1.123 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/1.073, allocations: 1.067 MB / 1.124 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006608/1.074, allocations: 100.5 kB / 1.124 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of SimCode: time 3.707e-06/1.074, allocations: 0 / 1.124 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of Templates: time 0.03174/1.106, allocations: 18.77 MB / 1.143 GB, free: 0.8086 MB / 0.7136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)