Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.646/2.646, allocations: 287.5 MB / 302.4 MB, free: 8.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 178.1 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.4 MB / 0.6297 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009945/0.0009943, allocations: 102.2 kB / 0.743 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004889/0.0004891, allocations: 13.52 kB / 0.8658 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2014, allocations: 115.3 MB / 0.9783 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9636/1.165, allocations: 176.6 MB / 1.151 GB, free: 9.625 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.01529/1.18, allocations: 6.524 MB / 1.157 GB, free: 5.453 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002011/1.182, allocations: 39.47 kB / 1.157 GB, free: 5.434 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.002468/1.185, allocations: 470.3 kB / 1.158 GB, free: 5.051 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.007568/1.193, allocations: 1.654 MB / 1.159 GB, free: 3.766 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.005154/1.198, allocations: 1.085 MB / 1.16 GB, free: 3.031 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.00655/1.204, allocations: 3.16 MB / 1.163 GB, free: 1.152 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/1.206, allocations: 0.6577 MB / 1.164 GB, free: 0.75 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003268/1.21, allocations: 0.9468 MB / 1.165 GB, free: 256 kB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/1.212, allocations: 0.7533 MB / 1.166 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 0.0004432/1.213, allocations: 42.59 kB / 1.166 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005295/1.218, allocations: 1.217 MB / 1.167 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0009071/1.219, allocations: 302 kB / 1.167 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.000635/1.22, allocations: 238.5 kB / 1.167 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.004104/1.224, allocations: 1.634 MB / 1.169 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/1.224, allocations: 1.25 kB / 1.169 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.236e-06/1.224, allocations: 0 / 1.169 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.58e-05/1.224, allocations: 0 / 1.169 GB, free: 13.78 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.006367/1.23, allocations: 1.419 MB / 1.17 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/1.23, allocations: 9.219 kB / 1.17 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005386/1.236, allocations: 0.6043 MB / 1.171 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003952/1.24, allocations: 0.9668 MB / 1.172 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002282/1.242, allocations: 320.9 kB / 1.172 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/1.242, allocations: 70.17 kB / 1.172 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004972/1.247, allocations: 1.17 MB / 1.174 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/1.247, allocations: 3.938 kB / 1.174 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/1.248, allocations: 25.5 kB / 1.174 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.187e-05/1.248, allocations: 32.8 kB / 1.174 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006394/1.254, allocations: 1.326 MB / 1.175 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01061/1.265, allocations: 2.975 MB / 1.178 GB, free: 8.094 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005044/1.27, allocations: 0.7366 MB / 1.178 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002669/1.273, allocations: 452.9 kB / 1.179 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002102/1.275, allocations: 1.026 MB / 1.18 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002931/1.278, allocations: 0.5299 MB / 1.18 GB, free: 5.977 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=59): time 1.054e-05/1.278, allocations: 4 kB / 1.18 GB, free: 5.973 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59): time 0.008356/1.286, allocations: 1.287 MB / 1.182 GB, free: 5.332 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/1.286, allocations: 108.5 kB / 1.182 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005354/1.292, allocations: 1.21 MB / 1.183 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0003032/1.292, allocations: 39.05 kB / 1.183 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007964/1.293, allocations: 425.3 kB / 1.183 GB, free: 4.148 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004821/1.293, allocations: 201.8 kB / 1.184 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/1.294, allocations: 10.94 kB / 1.184 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002247/1.294, allocations: 327.8 kB / 1.184 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004069/1.298, allocations: 0.4961 MB / 1.184 GB, free: 3.414 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004503/1.303, allocations: 0.6415 MB / 1.185 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004226/1.307, allocations: 0.5471 MB / 1.186 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/1.307, allocations: 0 / 1.186 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00953/1.316, allocations: 1.31 MB / 1.187 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.317, allocations: 46.97 kB / 1.187 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/1.317, allocations: 10.47 kB / 1.187 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-05/1.317, allocations: 5.094 kB / 1.187 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003104/1.32, allocations: 217.3 kB / 1.187 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/1.32, allocations: 5.344 kB / 1.187 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004941/1.325, allocations: 298.7 kB / 1.187 GB, free: 1.891 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003814/1.325, allocations: 40.69 kB / 1.187 GB, free: 1.875 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.001326/1.327, allocations: 338.9 kB / 1.188 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/1.327, allocations: 119.3 kB / 1.188 GB, free: 1.547 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006282/1.334, allocations: 1.066 MB / 1.189 GB, free: 0.9492 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.122e-05/1.334, allocations: 5.344 kB / 1.189 GB, free: 0.9492 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.334, allocations: 6.906 kB / 1.189 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/1.334, allocations: 3.984 kB / 1.189 GB, free: 0.9414 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0138/1.348, allocations: 3.233 MB / 1.192 GB, free: 14.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-05/1.348, allocations: 7.875 kB / 1.192 GB, free: 14.68 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/1.349, allocations: 125.4 kB / 1.192 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.626e-05/1.349, allocations: 14.94 kB / 1.192 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/1.35, allocations: 25.98 kB / 1.192 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.76e-05/1.35, allocations: 18.55 kB / 1.192 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-05/1.35, allocations: 11.92 kB / 1.192 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/1.355, allocations: 1.32 MB / 1.194 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/1.356, allocations: 331.7 kB / 1.194 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004575/1.357, allocations: 25.62 kB / 1.194 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002425/1.359, allocations: 136.8 kB / 1.194 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002376/1.36, allocations: 60.42 kB / 1.194 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/1.36, allocations: 43.52 kB / 1.194 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.00421/1.364, allocations: 0.8761 MB / 1.195 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.32e-07/1.364, allocations: 0 / 1.195 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.002105/1.366, allocations: 302.3 kB / 1.195 GB, free: 12.77 MB / 0.7292 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.001216/1.367, allocations: 341.1 kB / 1.196 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.004972/1.372, allocations: 1.086 MB / 1.197 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/1.373, allocations: 0 / 1.197 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001996/1.375, allocations: 0.544 MB / 1.197 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/1.38, allocations: 0.5397 MB / 1.198 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006982/1.387, allocations: 2.315 MB / 1.2 GB, free: 8.164 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000962/1.388, allocations: 1.081 MB / 1.201 GB, free: 7.055 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.002218/1.39, allocations: 281.7 kB / 1.201 GB, free: 6.781 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005065/1.391, allocations: 83.41 kB / 1.201 GB, free: 6.699 MB / 0.7292 GB Notification: Performance of SimCode: time 1.252e-06/1.391, allocations: 0 / 1.201 GB, free: 6.699 MB / 0.7292 GB Notification: Performance of Templates: time 0.05971/1.451, allocations: 20.84 MB / 1.222 GB, free: 2.02 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)