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.796/2.796, allocations: 287.3 MB / 302.3 MB, free: 8.32 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.00246/0.002459, allocations: 189.5 kB / 370.8 MB, free: 10.85 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.103/2.103, allocations: 205.4 MB / 0.6295 GB, free: 10.59 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.001169/0.001169, allocations: 95.16 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006505/0.000651, allocations: 12.72 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2065, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9027/1.109, allocations: 162 MB / 1.136 GB, free: 15.48 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.02179/1.131, allocations: 6.243 MB / 1.143 GB, free: 14.44 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0028/1.134, allocations: 36.97 kB / 1.143 GB, free: 14.42 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.004855/1.139, allocations: 0.6735 MB / 1.143 GB, free: 14.19 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.01228/1.151, allocations: 1.634 MB / 1.145 GB, free: 13.4 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.007491/1.159, allocations: 1.544 MB / 1.146 GB, free: 12.43 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.005275/1.164, allocations: 1.664 MB / 1.148 GB, free: 11.32 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002022/1.166, allocations: 0.6905 MB / 1.149 GB, free: 10.9 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003565/1.17, allocations: 0.9149 MB / 1.15 GB, free: 10.33 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/1.172, allocations: 0.536 MB / 1.15 GB, free: 10.02 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0003908/1.173, allocations: 42.62 kB / 1.15 GB, free: 10.02 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005052/1.178, allocations: 1.175 MB / 1.151 GB, free: 9.488 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0007882/1.178, allocations: 288.1 kB / 1.152 GB, free: 9.305 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0006812/1.179, allocations: 234.4 kB / 1.152 GB, free: 9.164 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.004144/1.183, allocations: 1.562 MB / 1.153 GB, free: 8.141 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/1.183, allocations: 0 / 1.153 GB, free: 8.141 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.868e-06/1.183, allocations: 0 / 1.153 GB, free: 8.141 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.248e-05/1.183, allocations: 3.344 kB / 1.153 GB, free: 8.141 MB / 0.698 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.006607/1.19, allocations: 1.394 MB / 1.155 GB, free: 7.051 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/1.19, allocations: 20.64 kB / 1.155 GB, free: 7.039 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004346/1.191, allocations: 110.8 kB / 1.155 GB, free: 6.945 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005607/1.196, allocations: 0.6058 MB / 1.155 GB, free: 6.695 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003513/1.2, allocations: 0.9234 MB / 1.156 GB, free: 5.969 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002366/1.202, allocations: 316.9 kB / 1.157 GB, free: 5.855 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003636/1.203, allocations: 70.58 kB / 1.157 GB, free: 5.832 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005258/1.208, allocations: 1.172 MB / 1.158 GB, free: 5.16 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/1.208, allocations: 5.344 kB / 1.158 GB, free: 5.156 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/1.208, allocations: 25.59 kB / 1.158 GB, free: 5.137 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.611e-05/1.208, allocations: 32.83 kB / 1.158 GB, free: 5.133 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006756/1.215, allocations: 1.328 MB / 1.159 GB, free: 4.504 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01139/1.226, allocations: 2.994 MB / 1.162 GB, free: 2.383 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003591/1.23, allocations: 0.7331 MB / 1.163 GB, free: 2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000765/1.231, allocations: 0.6788 MB / 1.163 GB, free: 1.211 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001998/1.233, allocations: 0.5258 MB / 1.164 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of pre-optimization done (n=59): time 3.416e-06/1.233, allocations: 1.281 kB / 1.164 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of matching and sorting (n=59): time 0.005842/1.239, allocations: 1.371 MB / 1.165 GB, free: 136 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.807e-05/1.239, allocations: 110.7 kB / 1.165 GB, free: 8 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003559/1.243, allocations: 1.221 MB / 1.167 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002527/1.243, allocations: 42.95 kB / 1.167 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005647/1.243, allocations: 429.6 kB / 1.167 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003541/1.244, allocations: 194.6 kB / 1.167 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.832e-05/1.244, allocations: 10.88 kB / 1.167 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000164/1.244, allocations: 331.6 kB / 1.168 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002617/1.247, allocations: 0.4892 MB / 1.168 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/1.25, allocations: 0.6365 MB / 1.169 GB, free: 13.84 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/1.252, allocations: 0.548 MB / 1.169 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/1.252, allocations: 0 / 1.169 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.006436/1.259, allocations: 1.313 MB / 1.17 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.381e-05/1.259, allocations: 41.75 kB / 1.171 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/1.259, allocations: 5.25 kB / 1.171 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/1.259, allocations: 9.438 kB / 1.171 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002053/1.261, allocations: 214.4 kB / 1.171 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-05/1.261, allocations: 9.25 kB / 1.171 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/1.265, allocations: 306 kB / 1.171 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002558/1.265, allocations: 35.42 kB / 1.171 GB, free: 12.67 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.0008855/1.266, allocations: 331 kB / 1.171 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004137/1.266, allocations: 119.6 kB / 1.171 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/1.27, allocations: 1.066 MB / 1.173 GB, free: 11.76 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/1.27, allocations: 11.2 kB / 1.173 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/1.27, allocations: 0 / 1.173 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/1.27, allocations: 6.781 kB / 1.173 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009378/1.28, allocations: 3.235 MB / 1.176 GB, free: 9.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/1.28, allocations: 7.656 kB / 1.176 GB, free: 9.48 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/1.281, allocations: 129.1 kB / 1.176 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.012e-05/1.281, allocations: 13.28 kB / 1.176 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/1.281, allocations: 36.77 kB / 1.176 GB, free: 9.422 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.911e-05/1.281, allocations: 18.36 kB / 1.176 GB, free: 9.414 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.399e-05/1.281, allocations: 18.3 kB / 1.176 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004387/1.286, allocations: 1.724 MB / 1.178 GB, free: 7.91 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/1.287, allocations: 337.6 kB / 1.178 GB, free: 7.629 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005088/1.287, allocations: 21.09 kB / 1.178 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002587/1.29, allocations: 130.9 kB / 1.178 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/1.29, allocations: 62.14 kB / 1.178 GB, free: 7.539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002015/1.29, allocations: 42.12 kB / 1.178 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.003023/1.294, allocations: 0.891 MB / 1.179 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.71e-07/1.294, allocations: 0 / 1.179 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001993/1.296, allocations: 307.3 kB / 1.179 GB, free: 6.98 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.006712/1.302, allocations: 4.689 MB / 1.184 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.004884/1.307, allocations: 1.085 MB / 1.185 GB, free: 2.168 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/1.307, allocations: 2.969 kB / 1.185 GB, free: 2.168 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001958/1.309, allocations: 0.5417 MB / 1.186 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005086/1.314, allocations: 0.5262 MB / 1.186 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02707/1.342, allocations: 8.827 MB / 1.195 GB, free: 10.33 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000982/1.343, allocations: 1.089 MB / 1.196 GB, free: 9.207 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.002243/1.345, allocations: 284.2 kB / 1.196 GB, free: 8.93 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/1.346, allocations: 367.3 kB / 1.196 GB, free: 8.57 MB / 0.7292 GB Notification: Performance of SimCode: time 9.82e-07/1.346, allocations: 0 / 1.196 GB, free: 8.57 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/1.447, allocations: 31.14 MB / 1.227 GB, free: 9.785 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002961/1.448, allocations: 251.5 kB / 1.227 GB, free: 9.535 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.829/5.277, allocations: 4 kB / 1.227 GB, free: 9.531 MB / 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)