Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001071, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.56/2.56, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004248, allocations: 15.94 kB / 0.8378 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6732/0.6736, allocations: 146.8 MB / 0.9811 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1935/0.8672, allocations: 176.6 MB / 1.154 GB, free: 5.191 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01097/0.8782, allocations: 6.552 MB / 1.16 GB, free: 14.62 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.8799, allocations: 39.69 kB / 1.16 GB, free: 14.59 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.8815, allocations: 480.7 kB / 1.161 GB, free: 14.11 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.005367/0.8869, allocations: 1.691 MB / 1.162 GB, free: 12.41 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003467/0.8903, allocations: 1.081 MB / 1.163 GB, free: 11.35 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004585/0.8949, allocations: 3.22 MB / 1.166 GB, free: 8.125 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.8966, allocations: 0.6817 MB / 1.167 GB, free: 7.43 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002381/0.899, allocations: 0.9336 MB / 1.168 GB, free: 6.492 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.9006, allocations: 0.743 MB / 1.169 GB, free: 5.746 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000301/0.9009, allocations: 40 kB / 1.169 GB, free: 5.707 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003343/0.9042, allocations: 1.216 MB / 1.17 GB, free: 4.488 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000534/0.9048, allocations: 299 kB / 1.17 GB, free: 4.195 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.9053, allocations: 241.1 kB / 1.17 GB, free: 3.953 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002456/0.9078, allocations: 1.61 MB / 1.172 GB, free: 2.34 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.9078, allocations: 0 / 1.172 GB, free: 2.34 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9078, allocations: 0 / 1.172 GB, free: 2.34 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.793e-05/0.9079, allocations: 4 kB / 1.172 GB, free: 2.336 MB / 0.92 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.003701/0.9116, allocations: 1.407 MB / 1.173 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.9116, allocations: 8.031 kB / 1.173 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003313/0.912, allocations: 114.5 kB / 1.173 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002907/0.9149, allocations: 0.6073 MB / 1.174 GB, free: 132 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.9173, allocations: 0.9486 MB / 1.175 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001038/0.9184, allocations: 321 kB / 1.175 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/0.9186, allocations: 68 kB / 1.175 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/0.9212, allocations: 1.144 MB / 1.176 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.9213, allocations: 3.938 kB / 1.176 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.9214, allocations: 28 kB / 1.177 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.612e-05/0.9215, allocations: 33.3 kB / 1.177 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00313/0.9246, allocations: 1.254 MB / 1.178 GB, free: 12.27 MB / 0.9356 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006312/0.9309, allocations: 3.241 MB / 1.181 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.9326, allocations: 0.7085 MB / 1.182 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007654/0.9334, allocations: 434 kB / 1.182 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008652/0.9343, allocations: 1.021 MB / 1.183 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009841/0.9353, allocations: 0.5298 MB / 1.184 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 3.296e-06/0.9353, allocations: 0 / 1.184 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.003212/0.9385, allocations: 1.237 MB / 1.185 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.9386, allocations: 152.8 kB / 1.185 GB, free: 4.582 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002286/0.9409, allocations: 1.204 MB / 1.186 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.941, allocations: 41.7 kB / 1.186 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004094/0.9414, allocations: 441.5 kB / 1.187 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.9416, allocations: 185.3 kB / 1.187 GB, free: 2.699 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.339e-05/0.9417, allocations: 12 kB / 1.187 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.9418, allocations: 326 kB / 1.187 GB, free: 2.363 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.9431, allocations: 488.9 kB / 1.187 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.9444, allocations: 0.6405 MB / 1.188 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.9457, allocations: 0.5346 MB / 1.189 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.9457, allocations: 0 / 1.189 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003159/0.9489, allocations: 1.279 MB / 1.19 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.848e-05/0.9489, allocations: 47.41 kB / 1.19 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.949, allocations: 0 / 1.19 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.949, allocations: 11.95 kB / 1.19 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009121/0.9499, allocations: 212 kB / 1.19 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.9499, allocations: 8 kB / 1.19 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.9515, allocations: 301.4 kB / 1.19 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.9516, allocations: 43.95 kB / 1.19 GB, free: 14.75 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (67): * Single equations (assignments): 66 * 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.0006128/0.9522, allocations: 323.4 kB / 1.191 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.9525, allocations: 122.5 kB / 1.191 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.9547, allocations: 1.002 MB / 1.192 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.9547, allocations: 11.98 kB / 1.192 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.9548, allocations: 3.953 kB / 1.192 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.9548, allocations: 4 kB / 1.192 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005164/0.9599, allocations: 3.173 MB / 1.195 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.143e-05/0.96, allocations: 8 kB / 1.195 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005768/0.9606, allocations: 120.2 kB / 1.195 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/0.9606, allocations: 12 kB / 1.195 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.153e-05/0.9607, allocations: 27.98 kB / 1.195 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.241e-05/0.9607, allocations: 11.94 kB / 1.195 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/0.9607, allocations: 15.88 kB / 1.195 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.963, allocations: 1.36 MB / 1.197 GB, free: 8.273 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/0.9635, allocations: 327.4 kB / 1.197 GB, free: 7.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.9638, allocations: 23.98 kB / 1.197 GB, free: 7.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.9649, allocations: 127.9 kB / 1.197 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.965, allocations: 55.83 kB / 1.197 GB, free: 7.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.099e-05/0.9651, allocations: 35.97 kB / 1.197 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001552/0.9666, allocations: 0.8833 MB / 1.198 GB, free: 6.805 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9666, allocations: 0 / 1.198 GB, free: 6.805 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001131/0.9678, allocations: 303.8 kB / 1.198 GB, free: 6.508 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (56): * Single equations (assignments): 51 * 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.003309/0.9711, allocations: 2.13 MB / 1.2 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002397/0.9735, allocations: 1.048 MB / 1.201 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.9735, allocations: 0 / 1.201 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0009944/0.9745, allocations: 0.521 MB / 1.202 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.9772, allocations: 0.5349 MB / 1.202 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.9918, allocations: 7.155 MB / 1.209 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009305/0.9928, allocations: 1.073 MB / 1.21 GB, free: 9.508 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001301/0.9941, allocations: 283.8 kB / 1.211 GB, free: 9.234 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000563/0.9947, allocations: 363.3 kB / 1.211 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of SimCode: time 1.042e-06/0.9947, allocations: 0 / 1.211 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0586/1.053, allocations: 30.6 MB / 1.241 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/1.054, allocations: 250.2 kB / 1.241 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.464/3.518, allocations: 0 / 1.241 GB, free: 10.37 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) Environment - environmentSimulation: