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 2.669/2.669, allocations: 287.5 MB / 302.4 MB, free: 8.258 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.001366/0.001366, allocations: 186 kB / 371 MB, free: 10.84 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.016/2.016, allocations: 205.4 MB / 0.6297 GB, free: 10.58 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.0009126/0.0009124, allocations: 92.91 kB / 0.743 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005024/0.0005027, allocations: 16.14 kB / 0.8659 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2008, allocations: 115.3 MB / 0.9785 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.8976/1.098, allocations: 176.6 MB / 1.151 GB, free: 9.574 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.02125/1.12, allocations: 6.513 MB / 1.157 GB, free: 5.324 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00253/1.122, allocations: 39 kB / 1.157 GB, free: 5.305 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.003629/1.126, allocations: 478.8 kB / 1.158 GB, free: 4.914 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.01108/1.137, allocations: 1.65 MB / 1.159 GB, free: 3.633 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.007937/1.145, allocations: 1.079 MB / 1.16 GB, free: 2.902 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.009452/1.155, allocations: 3.162 MB / 1.164 GB, free: 1.02 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002743/1.157, allocations: 0.6574 MB / 1.164 GB, free: 0.6172 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004432/1.162, allocations: 0.9501 MB / 1.165 GB, free: 116 kB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003121/1.165, allocations: 0.7452 MB / 1.166 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 0.0004981/1.166, allocations: 43.12 kB / 1.166 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007735/1.173, allocations: 1.216 MB / 1.167 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.001154/1.175, allocations: 311.5 kB / 1.167 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.000813/1.175, allocations: 240.9 kB / 1.168 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.005803/1.181, allocations: 1.631 MB / 1.169 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.061e-05/1.181, allocations: 0.9062 kB / 1.169 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.257e-06/1.181, allocations: 0 / 1.169 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.705e-05/1.181, allocations: 0 / 1.169 GB, free: 13.64 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.009338/1.191, allocations: 1.419 MB / 1.171 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/1.191, allocations: 8.781 kB / 1.171 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004822/1.191, allocations: 114.8 kB / 1.171 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008627/1.2, allocations: 0.6014 MB / 1.171 GB, free: 12.18 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003937/1.204, allocations: 0.9671 MB / 1.172 GB, free: 11.43 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002371/1.206, allocations: 321.1 kB / 1.173 GB, free: 11.32 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003589/1.207, allocations: 66.31 kB / 1.173 GB, free: 11.3 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00496/1.212, allocations: 1.174 MB / 1.174 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/1.212, allocations: 0 / 1.174 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/1.212, allocations: 29.16 kB / 1.174 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-05/1.212, allocations: 44.62 kB / 1.174 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008109/1.22, allocations: 1.322 MB / 1.175 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01653/1.237, allocations: 2.975 MB / 1.178 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005094/1.242, allocations: 0.7288 MB / 1.179 GB, free: 7.477 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002398/1.244, allocations: 451.2 kB / 1.179 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001948/1.246, allocations: 1.027 MB / 1.18 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002863/1.249, allocations: 0.5322 MB / 1.181 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=59): time 4.789e-06/1.249, allocations: 0 / 1.181 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59): time 0.008533/1.258, allocations: 1.288 MB / 1.182 GB, free: 5.102 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/1.258, allocations: 115.1 kB / 1.182 GB, free: 4.973 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004728/1.263, allocations: 1.203 MB / 1.183 GB, free: 4.324 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002545/1.263, allocations: 38.8 kB / 1.183 GB, free: 4.285 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000746/1.264, allocations: 435.4 kB / 1.184 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003775/1.264, allocations: 197.8 kB / 1.184 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/1.264, allocations: 11 kB / 1.184 GB, free: 3.73 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002197/1.265, allocations: 332.2 kB / 1.184 GB, free: 3.406 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002704/1.267, allocations: 499.8 kB / 1.185 GB, free: 3.184 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002733/1.27, allocations: 0.6446 MB / 1.185 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002555/1.273, allocations: 0.5491 MB / 1.186 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/1.273, allocations: 6.859 kB / 1.186 GB, free: 2.523 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.005884/1.279, allocations: 1.319 MB / 1.187 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.809e-05/1.279, allocations: 37.28 kB / 1.187 GB, free: 1.848 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.279, allocations: 2.938 kB / 1.187 GB, free: 1.848 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/1.279, allocations: 5.281 kB / 1.187 GB, free: 1.848 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00191/1.281, allocations: 214.6 kB / 1.187 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/1.281, allocations: 5.844 kB / 1.187 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/1.284, allocations: 309.9 kB / 1.188 GB, free: 1.648 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/1.284, allocations: 36.62 kB / 1.188 GB, free: 1.637 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.0007436/1.285, allocations: 321.5 kB / 1.188 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/1.285, allocations: 117.7 kB / 1.188 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/1.289, allocations: 1.074 MB / 1.189 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/1.289, allocations: 9.734 kB / 1.189 GB, free: 0.7148 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.289, allocations: 0 / 1.189 GB, free: 0.7148 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/1.289, allocations: 0 / 1.189 GB, free: 0.7148 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008255/1.297, allocations: 3.243 MB / 1.192 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/1.297, allocations: 12.41 kB / 1.192 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/1.298, allocations: 130.5 kB / 1.192 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.768e-05/1.298, allocations: 13.41 kB / 1.192 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.82e-05/1.299, allocations: 25.72 kB / 1.192 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.604e-05/1.299, allocations: 14.81 kB / 1.193 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/1.299, allocations: 11.95 kB / 1.193 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003788/1.302, allocations: 1.323 MB / 1.194 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008443/1.303, allocations: 328.8 kB / 1.194 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002708/1.304, allocations: 29.3 kB / 1.194 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002097/1.306, allocations: 126.2 kB / 1.194 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/1.306, allocations: 64.36 kB / 1.194 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/1.306, allocations: 43.5 kB / 1.194 GB, free: 13.06 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.002599/1.309, allocations: 0.8756 MB / 1.195 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.51e-07/1.309, allocations: 2.906 kB / 1.195 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001579/1.31, allocations: 294.5 kB / 1.196 GB, free: 12.54 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.005031/1.315, allocations: 2.122 MB / 1.198 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.004675/1.32, allocations: 1.084 MB / 1.199 GB, free: 9.516 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.32, allocations: 0 / 1.199 GB, free: 9.516 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001816/1.322, allocations: 0.5439 MB / 1.199 GB, free: 8.961 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005166/1.327, allocations: 0.5403 MB / 1.2 GB, free: 8.43 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02503/1.352, allocations: 7.228 MB / 1.207 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/1.353, allocations: 1.069 MB / 1.208 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002143/1.355, allocations: 281 kB / 1.208 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009986/1.356, allocations: 367.3 kB / 1.208 GB, free: 15.1 MB / 0.7448 GB Notification: Performance of SimCode: time 1.08e-05/1.356, allocations: 0 / 1.208 GB, free: 15.1 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09181/1.448, allocations: 30.88 MB / 1.239 GB, free: 0.5742 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004213/1.449, allocations: 255 kB / 1.239 GB, free: 244 kB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.662/5.111, allocations: 0 / 1.239 GB, free: 244 kB / 0.7605 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)