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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.642/1.642, allocations: 287.4 MB / 302.6 MB, free: 8.332 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.001035/0.001035, allocations: 180.5 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.4 MB / 0.6298 GB, free: 10.5 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.0007771/0.0007772, allocations: 102.7 kB / 0.7431 GB, free: 6.496 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000621/0.0006211, allocations: 11.61 kB / 0.8662 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2164, allocations: 115.3 MB / 0.9787 GB, free: 28.09 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5933/0.8097, allocations: 176.6 MB / 1.151 GB, free: 9.559 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0103/0.8201, allocations: 6.517 MB / 1.158 GB, free: 5.199 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.8219, allocations: 38.28 kB / 1.158 GB, free: 5.18 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.8235, allocations: 477.8 kB / 1.158 GB, free: 4.789 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.005174/0.8287, allocations: 1.641 MB / 1.16 GB, free: 3.516 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.003224/0.832, allocations: 1.085 MB / 1.161 GB, free: 2.781 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.004656/0.8366, allocations: 3.216 MB / 1.164 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.8381, allocations: 0.739 MB / 1.165 GB, free: 428 kB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.8404, allocations: 0.9452 MB / 1.166 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.8418, allocations: 0.7453 MB / 1.166 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.842, allocations: 47.12 kB / 1.166 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003294/0.8453, allocations: 1.216 MB / 1.167 GB, free: 14.86 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0004326/0.8457, allocations: 306.5 kB / 1.168 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.8462, allocations: 234.5 kB / 1.168 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.002547/0.8488, allocations: 1.635 MB / 1.17 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.8488, allocations: 0 / 1.17 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8488, allocations: 0 / 1.17 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.072e-05/0.8488, allocations: 0 / 1.17 GB, free: 13.45 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.003322/0.8522, allocations: 1.417 MB / 1.171 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.8522, allocations: 9.969 kB / 1.171 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001574/0.8524, allocations: 114.6 kB / 1.171 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002881/0.8553, allocations: 0.5973 MB / 1.172 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.8575, allocations: 1.006 MB / 1.173 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001131/0.8586, allocations: 314.3 kB / 1.173 GB, free: 11.09 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.8587, allocations: 69.81 kB / 1.173 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.8614, allocations: 1.172 MB / 1.174 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.8614, allocations: 0 / 1.174 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.8615, allocations: 31.92 kB / 1.174 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.425e-05/0.8615, allocations: 32.86 kB / 1.174 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003211/0.8647, allocations: 1.327 MB / 1.176 GB, free: 9.742 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006126/0.8709, allocations: 2.972 MB / 1.178 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.8727, allocations: 0.734 MB / 1.179 GB, free: 7.246 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008248/0.8735, allocations: 453.1 kB / 1.18 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008775/0.8744, allocations: 1.019 MB / 1.181 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001002/0.8754, allocations: 0.5325 MB / 1.181 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=59): time 2.726e-06/0.8754, allocations: 0 / 1.181 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59): time 0.003031/0.8785, allocations: 1.293 MB / 1.182 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.8786, allocations: 111.2 kB / 1.182 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001909/0.8805, allocations: 1.215 MB / 1.184 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.365e-05/0.8806, allocations: 38.95 kB / 1.184 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003598/0.8809, allocations: 425.6 kB / 1.184 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.8811, allocations: 200.8 kB / 1.184 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.8812, allocations: 10.94 kB / 1.184 GB, free: 3.504 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.8813, allocations: 330.5 kB / 1.185 GB, free: 3.18 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.8826, allocations: 0.4888 MB / 1.185 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.884, allocations: 0.6526 MB / 1.186 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.8861, allocations: 0.9852 MB / 1.187 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.8861, allocations: 0 / 1.187 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003147/0.8892, allocations: 1.318 MB / 1.188 GB, free: 1.352 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.651e-05/0.8893, allocations: 33.58 kB / 1.188 GB, free: 1.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.8893, allocations: 6.688 kB / 1.188 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.8893, allocations: 13.08 kB / 1.188 GB, free: 1.309 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009487/0.8903, allocations: 217.9 kB / 1.188 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.8903, allocations: 4.594 kB / 1.188 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.892, allocations: 307.8 kB / 1.189 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.519e-05/0.8921, allocations: 35.08 kB / 1.189 GB, free: 1.102 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.0004943/0.8926, allocations: 326.3 kB / 1.189 GB, free: 0.8438 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.8928, allocations: 124.1 kB / 1.189 GB, free: 0.7773 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002098/0.8949, allocations: 1.058 MB / 1.19 GB, free: 196 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.8949, allocations: 9.719 kB / 1.19 GB, free: 192 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.8949, allocations: 0 / 1.19 GB, free: 192 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.8949, allocations: 5.984 kB / 1.19 GB, free: 188 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00496/0.8999, allocations: 3.237 MB / 1.193 GB, free: 13.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.8999, allocations: 16.28 kB / 1.193 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005908/0.9005, allocations: 128.7 kB / 1.193 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.9005, allocations: 10.72 kB / 1.193 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.254e-05/0.9006, allocations: 25.89 kB / 1.193 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.266e-05/0.9006, allocations: 14.83 kB / 1.193 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/0.9006, allocations: 13.09 kB / 1.193 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.9029, allocations: 1.327 MB / 1.195 GB, free: 12.92 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006202/0.9035, allocations: 332.5 kB / 1.195 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.9037, allocations: 21.09 kB / 1.195 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.9049, allocations: 130.4 kB / 1.195 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.905, allocations: 68.31 kB / 1.195 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.694e-05/0.9051, allocations: 43.47 kB / 1.195 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.001709/0.9068, allocations: 0.8796 MB / 1.196 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5.01e-07/0.9068, allocations: 0 / 1.196 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001418/0.9082, allocations: 301.2 kB / 1.196 GB, free: 12 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.003406/0.9117, allocations: 2.091 MB / 1.198 GB, free: 9.832 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002497/0.9142, allocations: 1.084 MB / 1.2 GB, free: 8.734 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.9142, allocations: 4 kB / 1.2 GB, free: 8.73 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0009478/0.9151, allocations: 0.54 MB / 1.2 GB, free: 8.18 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003889/0.919, allocations: 0.5419 MB / 1.201 GB, free: 7.648 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.9333, allocations: 7.228 MB / 1.208 GB, free: 60 kB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006486/0.934, allocations: 1.065 MB / 1.209 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.001287/0.9353, allocations: 285.4 kB / 1.209 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005427/0.9359, allocations: 367.3 kB / 1.209 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of SimCode: time 6.51e-07/0.9359, allocations: 4 kB / 1.209 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05029/0.9862, allocations: 30.91 MB / 1.239 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.9864, allocations: 244.4 kB / 1.24 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.698/3.685, allocations: 5.875 kB / 1.24 GB, free: 15.42 MB / 0.7761 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)