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.001529/0.001529, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001808/0.001808, allocations: 190.7 kB / 16.25 MB, free: 6.578 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.322/1.322, allocations: 205.1 MB / 222.1 MB, free: 4.66 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.56/1.56, allocations: 292.3 MB / 0.5485 GB, free: 13.65 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.001606/0.001606, allocations: 71.84 kB / 0.6711 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1657, allocations: 114.5 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4699/0.6356, allocations: 191.5 MB / 0.97 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007645/0.6433, allocations: 6.841 MB / 0.9766 GB, free: 32 kB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006314/0.6439, allocations: 40.47 kB / 0.9767 GB, free: 12 kB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.6454, allocations: 0.6107 MB / 0.9773 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003981/0.6494, allocations: 2.157 MB / 0.9794 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002446/0.6518, allocations: 1.307 MB / 0.9807 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0026/0.6545, allocations: 2.943 MB / 0.9835 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009768/0.6554, allocations: 0.8934 MB / 0.9844 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.6574, allocations: 1.156 MB / 0.9855 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.6586, allocations: 0.8491 MB / 0.9864 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.6588, allocations: 102.3 kB / 0.9865 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002942/0.6617, allocations: 2.148 MB / 0.9886 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.662, allocations: 375.8 kB / 0.9889 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0004715/0.6625, allocations: 0.5835 MB / 0.9895 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002347/0.6649, allocations: 2.514 MB / 0.9919 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.6649, allocations: 0 / 0.9919 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6649, allocations: 0 / 0.9919 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.6649, allocations: 0 / 0.9919 GB, free: 13.89 MB / 0.7481 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.003183/0.6681, allocations: 1.657 MB / 0.9936 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.6681, allocations: 12.75 kB / 0.9936 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.6682, allocations: 116 kB / 0.9937 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002836/0.6711, allocations: 0.5343 MB / 0.9942 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.6729, allocations: 0.992 MB / 0.9952 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001118/0.674, allocations: 282.8 kB / 0.9954 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.6741, allocations: 66.44 kB / 0.9955 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002278/0.6764, allocations: 1.153 MB / 0.9966 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.6764, allocations: 0 / 0.9966 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.154e-05/0.6765, allocations: 28.5 kB / 0.9967 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/0.6766, allocations: 28.67 kB / 0.9967 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003056/0.6796, allocations: 1.28 MB / 0.9979 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004933/0.6846, allocations: 2.94 MB / 1.001 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.6863, allocations: 0.708 MB / 1.002 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007577/0.687, allocations: 452.7 kB / 1.002 GB, free: 8.887 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007486/0.6878, allocations: 1.02 MB / 1.003 GB, free: 7.723 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009465/0.6887, allocations: 0.5308 MB / 1.003 GB, free: 7.375 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=59): time 2.204e-06/0.6888, allocations: 0 / 1.003 GB, free: 7.375 MB / 0.7481 GB Notification: Performance of matching and sorting (n=59): time 0.002714/0.6915, allocations: 1.286 MB / 1.005 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.6915, allocations: 110.8 kB / 1.005 GB, free: 6.594 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.6932, allocations: 1.197 MB / 1.006 GB, free: 5.945 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.055e-05/0.6933, allocations: 42.5 kB / 1.006 GB, free: 5.902 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003144/0.6936, allocations: 434.2 kB / 1.006 GB, free: 5.527 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.6937, allocations: 196.2 kB / 1.007 GB, free: 5.363 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/0.694, allocations: 148 kB / 1.007 GB, free: 5.277 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.449e-05/0.6941, allocations: 329.5 kB / 1.007 GB, free: 4.957 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.6954, allocations: 475 kB / 1.008 GB, free: 4.734 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.6967, allocations: 0.6201 MB / 1.008 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/0.6987, allocations: 0.9568 MB / 1.009 GB, free: 3.777 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.6987, allocations: 10.33 kB / 1.009 GB, free: 3.77 MB / 0.7481 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002896/0.7016, allocations: 1.258 MB / 1.01 GB, free: 3.145 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.7017, allocations: 40.06 kB / 1.01 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.7017, allocations: 2.625 kB / 1.01 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.7017, allocations: 15.34 kB / 1.01 GB, free: 3.102 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009296/0.7026, allocations: 198.3 kB / 1.011 GB, free: 3.043 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.7026, allocations: 8.781 kB / 1.011 GB, free: 3.039 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.704, allocations: 273.8 kB / 1.011 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.539e-05/0.7041, allocations: 37.72 kB / 1.011 GB, free: 2.895 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.0003719/0.7045, allocations: 327.4 kB / 1.011 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.7047, allocations: 116.1 kB / 1.011 GB, free: 2.578 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.7067, allocations: 1.042 MB / 1.012 GB, free: 1.992 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.7067, allocations: 15.2 kB / 1.012 GB, free: 1.984 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7067, allocations: 4 kB / 1.012 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.7068, allocations: 2.812 kB / 1.012 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004251/0.711, allocations: 3.219 MB / 1.015 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.711, allocations: 9.438 kB / 1.015 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005823/0.7116, allocations: 132.2 kB / 1.016 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.076e-06/0.7116, allocations: 10.28 kB / 1.016 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.664e-05/0.7117, allocations: 27.11 kB / 1.016 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.7117, allocations: 9.656 kB / 1.016 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.7117, allocations: 14.38 kB / 1.016 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.7137, allocations: 1.313 MB / 1.017 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.7141, allocations: 339.7 kB / 1.017 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/0.7143, allocations: 31.11 kB / 1.017 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.7153, allocations: 107.5 kB / 1.017 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.62e-05/0.7155, allocations: 66.47 kB / 1.017 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/0.7155, allocations: 41.91 kB / 1.017 GB, free: 14.35 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001305/0.7168, allocations: 0.8667 MB / 1.018 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7169, allocations: 3.938 kB / 1.018 GB, free: 13.87 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008537/0.7177, allocations: 307.5 kB / 1.019 GB, free: 13.82 MB / 0.7637 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.00261/0.7203, allocations: 2.085 MB / 1.021 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002228/0.7226, allocations: 1.092 MB / 1.022 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7226, allocations: 2.219 kB / 1.022 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008563/0.7234, allocations: 0.5373 MB / 1.022 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.7258, allocations: 0.554 MB / 1.023 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.7416, allocations: 10.27 MB / 1.033 GB, free: 4.312 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.7421, allocations: 1.073 MB / 1.034 GB, free: 3.438 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001035/0.7432, allocations: 287.4 kB / 1.034 GB, free: 3.309 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/0.7437, allocations: 362 kB / 1.035 GB, free: 3.016 MB / 0.7637 GB Notification: Performance of SimCode: time 4.31e-07/0.7437, allocations: 2.219 kB / 1.035 GB, free: 3.016 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.493/3.236, allocations: 31.63 MB / 1.065 GB, free: 4.488 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000304/3.237, allocations: 264.5 kB / 1.066 GB, free: 4.145 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.569/5.806, allocations: 0.625 kB / 1.066 GB, free: 4.145 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)