Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.306/1.306, allocations: 251.5 MB / 266.7 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008962/0.0008962, allocations: 174.5 kB / 325.8 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205 MB / 0.576 GB, free: 20.94 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007659/0.0007661, allocations: 89.64 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003251, allocations: 9.031 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2038, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.582/0.7859, allocations: 191.5 MB / 1.083 GB, free: 1.559 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.009693/0.7956, allocations: 7.066 MB / 1.09 GB, free: 1.336 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.797, allocations: 41.62 kB / 1.09 GB, free: 1.336 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.7985, allocations: 0.5601 MB / 1.091 GB, free: 1.328 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.005112/0.8036, allocations: 2.193 MB / 1.093 GB, free: 1.219 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.002951/0.8066, allocations: 1.285 MB / 1.094 GB, free: 1.168 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.00356/0.8101, allocations: 3.708 MB / 1.098 GB, free: 1.148 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.8112, allocations: 0.748 MB / 1.098 GB, free: 1.039 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.8126, allocations: 0.9589 MB / 1.099 GB, free: 1.031 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001584/0.8142, allocations: 0.8475 MB / 1.1 GB, free: 1.027 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.8143, allocations: 42.66 kB / 1.1 GB, free: 1.027 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003595/0.8179, allocations: 2.219 MB / 1.102 GB, free: 1.004 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0003357/0.8183, allocations: 310.2 kB / 1.103 GB, free: 1 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0005859/0.8188, allocations: 0.526 MB / 1.103 GB, free: 1 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.003064/0.8219, allocations: 2.41 MB / 1.106 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.8219, allocations: 0 / 1.106 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.665e-06/0.8219, allocations: 0 / 1.106 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.822, allocations: 3.641 kB / 1.106 GB, free: 0.8789 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.002937/0.8249, allocations: 1.412 MB / 1.107 GB, free: 16.04 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.825, allocations: 15.38 kB / 1.107 GB, free: 16.04 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/0.8251, allocations: 110.6 kB / 1.107 GB, free: 16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002736/0.8278, allocations: 0.6035 MB / 1.108 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/0.8297, allocations: 1.002 MB / 1.109 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/0.8309, allocations: 313 kB / 1.109 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.831, allocations: 69.25 kB / 1.109 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.8333, allocations: 1.176 MB / 1.11 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.8333, allocations: 3.156 kB / 1.11 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-05/0.8334, allocations: 27.69 kB / 1.11 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.515e-05/0.8334, allocations: 30.48 kB / 1.11 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00307/0.8365, allocations: 1.338 MB / 1.112 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005068/0.8416, allocations: 3.076 MB / 1.115 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.8433, allocations: 0.7372 MB / 1.115 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/0.844, allocations: 452.6 kB / 1.116 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008843/0.8449, allocations: 1.03 MB / 1.117 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000957/0.8459, allocations: 0.5374 MB / 1.117 GB, free: 13.33 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=59): time 2.375e-06/0.8459, allocations: 0 / 1.117 GB, free: 13.33 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59): time 0.002743/0.8487, allocations: 1.294 MB / 1.119 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.8487, allocations: 113 kB / 1.119 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/0.8506, allocations: 1.216 MB / 1.12 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.8506, allocations: 38.45 kB / 1.12 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.8509, allocations: 429.4 kB / 1.12 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.8511, allocations: 198.6 kB / 1.12 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.089e-05/0.8512, allocations: 60.66 kB / 1.121 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.8513, allocations: 330.1 kB / 1.121 GB, free: 12.28 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.8526, allocations: 0.4917 MB / 1.121 GB, free: 12.26 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.8541, allocations: 0.6445 MB / 1.122 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.8565, allocations: 0.9982 MB / 1.123 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.8566, allocations: 0.5625 kB / 1.123 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003541/0.8601, allocations: 1.312 MB / 1.124 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.042e-05/0.8602, allocations: 45.48 kB / 1.124 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.8602, allocations: 2.906 kB / 1.124 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.8602, allocations: 5.781 kB / 1.124 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.8612, allocations: 217.5 kB / 1.124 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.8613, allocations: 5.969 kB / 1.124 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.8628, allocations: 304.7 kB / 1.125 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.301e-05/0.8629, allocations: 34.25 kB / 1.125 GB, free: 11.66 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 (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.0005259/0.8635, allocations: 334.5 kB / 1.125 GB, free: 11.51 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.8636, allocations: 118.5 kB / 1.125 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.8657, allocations: 1.069 MB / 1.126 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.8657, allocations: 6.219 kB / 1.126 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.8657, allocations: 0 / 1.126 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.8657, allocations: 2.766 kB / 1.126 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/0.8703, allocations: 3.228 MB / 1.129 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.8704, allocations: 8.656 kB / 1.129 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005663/0.8709, allocations: 129.5 kB / 1.13 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.8709, allocations: 11.94 kB / 1.13 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.871, allocations: 29.45 kB / 1.13 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.596e-06/0.871, allocations: 10.97 kB / 1.13 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/0.871, allocations: 22.05 kB / 1.13 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.873, allocations: 1.335 MB / 1.131 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000432/0.8735, allocations: 333.8 kB / 1.131 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.8736, allocations: 23.09 kB / 1.131 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8747, allocations: 128.2 kB / 1.131 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.8748, allocations: 63.92 kB / 1.131 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-05/0.8749, allocations: 43.31 kB / 1.131 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001349/0.8762, allocations: 0.8923 MB / 1.132 GB, free: 9.762 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8763, allocations: 2 kB / 1.132 GB, free: 9.762 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008964/0.8772, allocations: 303.3 kB / 1.133 GB, free: 9.742 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 (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.002694/0.8799, allocations: 2.115 MB / 1.135 GB, free: 8.625 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002254/0.8821, allocations: 1.086 MB / 1.136 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8821, allocations: 0 / 1.136 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.883, allocations: 0.5444 MB / 1.136 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003393/0.8864, allocations: 0.5373 MB / 1.137 GB, free: 8.074 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/0.9046, allocations: 10.38 MB / 1.147 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008507/0.9055, allocations: 1.069 MB / 1.148 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001503/0.907, allocations: 289.5 kB / 1.148 GB, free: 0.707 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005559/0.9076, allocations: 368.5 kB / 1.149 GB, free: 420 kB / 0.7136 GB Notification: Performance of SimCode: time 1.132e-06/0.9076, allocations: 0 / 1.149 GB, free: 420 kB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3434/1.251, allocations: 30.62 MB / 1.179 GB, free: 4.52 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003164/1.251, allocations: 277.9 kB / 1.179 GB, free: 4.152 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/3.943, allocations: 0 / 1.179 GB, free: 4.152 MB / 0.7448 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)