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.00126/0.00126, allocations: 109.4 kB / 15.69 MB, free: 128 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.001203/0.001203, allocations: 187.1 kB / 16.62 MB, free: 6.582 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.491/1.491, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.702/1.702, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001469/0.00147, allocations: 71.12 kB / 0.6718 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2596, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.644/0.9036, allocations: 194 MB / 0.9731 GB, free: 428 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01072/0.9143, allocations: 6.88 MB / 0.9798 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.9162, allocations: 49.81 kB / 0.9799 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001889/0.9181, allocations: 0.6906 MB / 0.9805 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006257/0.9243, allocations: 2.286 MB / 0.9828 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003401/0.9278, allocations: 1.43 MB / 0.9842 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004428/0.9322, allocations: 2.932 MB / 0.987 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001479/0.9337, allocations: 0.9041 MB / 0.9879 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.9365, allocations: 1.15 MB / 0.989 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.938, allocations: 0.805 MB / 0.9898 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002046/0.9382, allocations: 102.5 kB / 0.9899 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004075/0.9423, allocations: 2.061 MB / 0.9919 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004417/0.9427, allocations: 379.6 kB / 0.9923 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0008164/0.9435, allocations: 0.5844 MB / 0.9929 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003942/0.9475, allocations: 2.441 MB / 0.9952 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.9475, allocations: 0 / 0.9952 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.343e-06/0.9475, allocations: 2.5 kB / 0.9952 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.044e-05/0.9476, allocations: 0 / 0.9952 GB, free: 9.121 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.003937/0.9515, allocations: 1.654 MB / 0.9969 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.9516, allocations: 10.12 kB / 0.9969 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.9517, allocations: 119.8 kB / 0.997 GB, free: 7.766 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002895/0.9546, allocations: 0.5359 MB / 0.9975 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/0.9572, allocations: 1.047 MB / 0.9985 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.497e-05/0.9573, allocations: 57.31 kB / 0.9986 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.9575, allocations: 70.95 kB / 0.9986 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002813/0.9603, allocations: 1.124 MB / 0.9997 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.9603, allocations: 7.922 kB / 0.9998 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.27e-05/0.9604, allocations: 27.97 kB / 0.9998 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.371e-05/0.9605, allocations: 35.47 kB / 0.9998 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003029/0.9635, allocations: 1.234 MB / 1.001 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005902/0.9694, allocations: 2.888 MB / 1.004 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.9713, allocations: 0.7177 MB / 1.005 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008154/0.9721, allocations: 452.5 kB / 1.005 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009462/0.9731, allocations: 1.023 MB / 1.006 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/0.9742, allocations: 0.5265 MB / 1.006 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=59): time 2.625e-06/0.9742, allocations: 0 / 1.006 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59): time 0.003132/0.9773, allocations: 1.274 MB / 1.008 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.13e-05/0.9774, allocations: 114.7 kB / 1.008 GB, free: 484 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/0.9796, allocations: 1.181 MB / 1.009 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.9798, allocations: 38.45 kB / 1.009 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003937/0.9802, allocations: 426.3 kB / 1.009 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.9804, allocations: 206.6 kB / 1.01 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.9807, allocations: 151.5 kB / 1.01 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.9809, allocations: 333.3 kB / 1.01 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.9822, allocations: 450.4 kB / 1.011 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.9836, allocations: 0.6057 MB / 1.011 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.9857, allocations: 0.9408 MB / 1.012 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.9857, allocations: 3.938 kB / 1.012 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003419/0.9891, allocations: 1.223 MB / 1.013 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.698e-05/0.9892, allocations: 37.38 kB / 1.013 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.9892, allocations: 8.781 kB / 1.013 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.9892, allocations: 4.875 kB / 1.013 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008916/0.9901, allocations: 193.2 kB / 1.013 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.9902, allocations: 9.266 kB / 1.013 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.9917, allocations: 251.4 kB / 1.014 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.9918, allocations: 40.78 kB / 1.014 GB, free: 12.81 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.0005843/0.9924, allocations: 330.6 kB / 1.014 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002569/0.9927, allocations: 116.8 kB / 1.014 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.995, allocations: 1.044 MB / 1.015 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.995, allocations: 9.25 kB / 1.015 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.995, allocations: 0 / 1.015 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.9951, allocations: 6.422 kB / 1.015 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005089/1, allocations: 3.224 MB / 1.018 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/1, allocations: 6.844 kB / 1.018 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005885/1.001, allocations: 127 kB / 1.018 GB, free: 9.605 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/1.001, allocations: 14.06 kB / 1.019 GB, free: 9.602 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.083e-05/1.001, allocations: 26.61 kB / 1.019 GB, free: 9.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.136e-05/1.001, allocations: 14.58 kB / 1.019 GB, free: 9.586 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.001, allocations: 11.53 kB / 1.019 GB, free: 9.582 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/1.003, allocations: 1.309 MB / 1.02 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005853/1.004, allocations: 337.9 kB / 1.02 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/1.004, allocations: 20.62 kB / 1.02 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/1.005, allocations: 110.1 kB / 1.02 GB, free: 8.324 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/1.005, allocations: 62.67 kB / 1.02 GB, free: 8.285 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/1.005, allocations: 43.69 kB / 1.02 GB, free: 8.27 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001535/1.007, allocations: 0.8435 MB / 1.021 GB, free: 7.805 MB / 0.7481 GB Notification: Performance of sort global known variables: time 6.01e-07/1.007, allocations: 0 / 1.021 GB, free: 7.805 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001178/1.008, allocations: 303.2 kB / 1.021 GB, free: 7.754 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.003186/1.011, allocations: 2.092 MB / 1.024 GB, free: 6.195 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002572/1.014, allocations: 1.051 MB / 1.025 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.014, allocations: 0 / 1.025 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001061/1.015, allocations: 0.5422 MB / 1.025 GB, free: 5.262 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/1.018, allocations: 0.5516 MB / 1.026 GB, free: 4.719 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/1.035, allocations: 9.409 MB / 1.035 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006426/1.035, allocations: 1.069 MB / 1.036 GB, free: 9.824 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001055/1.037, allocations: 279.4 kB / 1.036 GB, free: 9.551 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005262/1.037, allocations: 371.3 kB / 1.036 GB, free: 9.191 MB / 0.7637 GB Notification: Performance of SimCode: time 7.52e-07/1.037, allocations: 0 / 1.036 GB, free: 9.191 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06021/1.097, allocations: 31.79 MB / 1.068 GB, free: 9.801 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/11.51, allocations: 16 kB / 1.068 GB, free: 9.785 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)