Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_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.001397/0.001397, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 196.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.754/1.754, allocations: 292.3 MB / 0.5489 GB, free: 12.85 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 72.22 kB / 0.6716 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2213, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6695/0.8908, allocations: 194 MB / 0.9729 GB, free: 316 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01111/0.902, allocations: 6.895 MB / 0.9797 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00195/0.904, allocations: 45.81 kB / 0.9797 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.9062, allocations: 0.692 MB / 0.9804 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006883/0.9131, allocations: 2.279 MB / 0.9826 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003928/0.917, allocations: 1.426 MB / 0.984 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004193/0.9212, allocations: 2.92 MB / 0.9868 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.9225, allocations: 0.9103 MB / 0.9877 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002454/0.925, allocations: 1.136 MB / 0.9888 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.9262, allocations: 0.8025 MB / 0.9896 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.9263, allocations: 102.2 kB / 0.9897 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004039/0.9304, allocations: 2.058 MB / 0.9917 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003644/0.9307, allocations: 375.6 kB / 0.9921 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006009/0.9314, allocations: 0.5889 MB / 0.9927 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00335/0.9347, allocations: 2.408 MB / 0.995 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.9347, allocations: 0 / 0.995 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.016e-06/0.9347, allocations: 2.875 kB / 0.995 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.919e-05/0.9348, allocations: 3.938 kB / 0.995 GB, free: 9.176 MB / 0.7325 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.003518/0.9383, allocations: 1.655 MB / 0.9966 GB, free: 7.922 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.9383, allocations: 10.78 kB / 0.9967 GB, free: 7.922 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.9385, allocations: 118.8 kB / 0.9968 GB, free: 7.82 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003015/0.9415, allocations: 0.5402 MB / 0.9973 GB, free: 7.578 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001979/0.9435, allocations: 0.982 MB / 0.9983 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001208/0.9447, allocations: 276.7 kB / 0.9985 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.9449, allocations: 72.16 kB / 0.9986 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002612/0.9475, allocations: 1.148 MB / 0.9997 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.9475, allocations: 4 kB / 0.9997 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.645e-05/0.9476, allocations: 27.72 kB / 0.9997 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.3e-05/0.9477, allocations: 29.98 kB / 0.9998 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003498/0.9512, allocations: 1.279 MB / 1.001 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005946/0.9571, allocations: 2.935 MB / 1.004 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.959, allocations: 0.7286 MB / 1.005 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008181/0.9598, allocations: 449.9 kB / 1.005 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009357/0.9608, allocations: 1.026 MB / 1.006 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.9618, allocations: 0.5307 MB / 1.007 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=59): time 2.505e-06/0.9618, allocations: 0 / 1.007 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59): time 0.003085/0.9649, allocations: 1.278 MB / 1.008 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.965, allocations: 114.7 kB / 1.008 GB, free: 424 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.967, allocations: 1.198 MB / 1.009 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.85e-05/0.9671, allocations: 36.8 kB / 1.009 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000372/0.9675, allocations: 430 kB / 1.01 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.9677, allocations: 202.1 kB / 1.01 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002823/0.9679, allocations: 147.8 kB / 1.01 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.9681, allocations: 333.3 kB / 1.01 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.9695, allocations: 473.9 kB / 1.011 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.9712, allocations: 0.621 MB / 1.011 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002385/0.9736, allocations: 0.9532 MB / 1.012 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.9736, allocations: 2.719 kB / 1.012 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003514/0.9771, allocations: 1.261 MB / 1.013 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.029e-05/0.9772, allocations: 44.31 kB / 1.013 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.9772, allocations: 1.938 kB / 1.013 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.9772, allocations: 9.406 kB / 1.013 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.9783, allocations: 202.1 kB / 1.014 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.9783, allocations: 15.06 kB / 1.014 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.98, allocations: 269.9 kB / 1.014 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.489e-05/0.9801, allocations: 37.17 kB / 1.014 GB, free: 12.73 MB / 0.7481 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 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005209/0.9807, allocations: 326.4 kB / 1.014 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.9809, allocations: 116.1 kB / 1.014 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.9831, allocations: 1.049 MB / 1.015 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.9831, allocations: 12.73 kB / 1.015 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.9831, allocations: 2.938 kB / 1.015 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.9831, allocations: 0 / 1.015 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.9879, allocations: 3.226 MB / 1.019 GB, free: 9.555 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.9879, allocations: 7.906 kB / 1.019 GB, free: 9.555 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006352/0.9886, allocations: 120.2 kB / 1.019 GB, free: 9.523 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.497e-05/0.9886, allocations: 16.2 kB / 1.019 GB, free: 9.52 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.396e-05/0.9887, allocations: 24.86 kB / 1.019 GB, free: 9.508 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-05/0.9887, allocations: 20.59 kB / 1.019 GB, free: 9.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.9887, allocations: 10.72 kB / 1.019 GB, free: 9.496 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.9909, allocations: 1.314 MB / 1.02 GB, free: 8.57 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/0.9915, allocations: 337.9 kB / 1.02 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.9917, allocations: 24.55 kB / 1.02 GB, free: 8.277 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.9929, allocations: 107.4 kB / 1.02 GB, free: 8.238 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.993, allocations: 69.41 kB / 1.021 GB, free: 8.195 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-05/0.9931, allocations: 47.66 kB / 1.021 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001619/0.9947, allocations: 0.8709 MB / 1.021 GB, free: 7.695 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9947, allocations: 0 / 1.021 GB, free: 7.695 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.00105/0.9958, allocations: 299.6 kB / 1.022 GB, free: 7.648 MB / 0.7481 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0029/0.9987, allocations: 2.098 MB / 1.024 GB, free: 6.082 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002626/1.001, allocations: 1.084 MB / 1.025 GB, free: 5.355 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/1.001, allocations: 0 / 1.025 GB, free: 5.355 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009835/1.002, allocations: 0.5432 MB / 1.025 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002709/1.005, allocations: 0.5442 MB / 1.026 GB, free: 4.277 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01768/1.023, allocations: 10.01 MB / 1.036 GB, free: 9.734 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006134/1.023, allocations: 1.069 MB / 1.037 GB, free: 8.637 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001262/1.025, allocations: 286.8 kB / 1.037 GB, free: 8.359 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005288/1.025, allocations: 371.2 kB / 1.037 GB, free: 7.996 MB / 0.7637 GB Notification: Performance of SimCode: time 9.81e-07/1.025, allocations: 4 kB / 1.037 GB, free: 7.992 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05917/1.084, allocations: 31.82 MB / 1.068 GB, free: 8.562 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/9.349, allocations: 12.06 kB / 1.068 GB, free: 8.551 MB / 0.795 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)