Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_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.001234/0.001234, 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.001361/0.001361, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 390.2 MB / 0.6647 GB, free: 408 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 71.83 kB / 0.8126 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5755/0.5769, allocations: 140.4 MB / 0.9497 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1756/0.7525, allocations: 194 MB / 1.139 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01037/0.7629, allocations: 6.945 MB / 1.146 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.7645, allocations: 47.69 kB / 1.146 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.7661, allocations: 0.683 MB / 1.147 GB, free: 7.43 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004785/0.7709, allocations: 2.349 MB / 1.149 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002815/0.7737, allocations: 1.419 MB / 1.15 GB, free: 3.672 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00324/0.7769, allocations: 2.978 MB / 1.153 GB, free: 0.6836 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.7782, allocations: 0.8879 MB / 1.154 GB, free: 15.79 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002259/0.7805, allocations: 1.121 MB / 1.155 GB, free: 14.66 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.7817, allocations: 0.8076 MB / 1.156 GB, free: 13.86 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.7819, allocations: 100 kB / 1.156 GB, free: 13.76 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003197/0.7851, allocations: 2.05 MB / 1.158 GB, free: 11.71 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000328/0.7855, allocations: 362.9 kB / 1.158 GB, free: 11.35 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0005918/0.7861, allocations: 0.5947 MB / 1.159 GB, free: 10.75 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002925/0.789, allocations: 2.361 MB / 1.161 GB, free: 8.387 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.789, allocations: 0 / 1.161 GB, free: 8.387 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.142e-06/0.789, allocations: 0 / 1.161 GB, free: 8.387 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.376e-05/0.7891, allocations: 0 / 1.161 GB, free: 8.387 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.003009/0.7921, allocations: 1.632 MB / 1.163 GB, free: 6.691 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.7921, allocations: 12.03 kB / 1.163 GB, free: 6.68 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.7922, allocations: 114.5 kB / 1.163 GB, free: 6.559 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002731/0.795, allocations: 0.5293 MB / 1.164 GB, free: 6.027 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.7968, allocations: 0.9791 MB / 1.165 GB, free: 5.008 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001112/0.7979, allocations: 277 kB / 1.165 GB, free: 4.738 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.798, allocations: 79.92 kB / 1.165 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.8003, allocations: 1.116 MB / 1.166 GB, free: 3.516 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.8003, allocations: 7.938 kB / 1.166 GB, free: 3.508 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.8004, allocations: 24 kB / 1.166 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.736e-05/0.8004, allocations: 33.3 kB / 1.166 GB, free: 3.449 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.8035, allocations: 1.196 MB / 1.167 GB, free: 2.25 MB / 0.92 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.005265/0.8087, allocations: 3.213 MB / 1.17 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.8103, allocations: 0.688 MB / 1.171 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007611/0.8111, allocations: 418.2 kB / 1.171 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008015/0.8119, allocations: 1.029 MB / 1.172 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000927/0.8129, allocations: 0.5104 MB / 1.173 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 3.977e-06/0.8129, allocations: 7.938 kB / 1.173 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.002792/0.8157, allocations: 1.224 MB / 1.174 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.8158, allocations: 140.9 kB / 1.174 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.8175, allocations: 1.2 MB / 1.175 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.762e-05/0.8176, allocations: 37.7 kB / 1.175 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/0.8179, allocations: 445.4 kB / 1.176 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.8181, allocations: 189.2 kB / 1.176 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.8183, allocations: 146.1 kB / 1.176 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.8184, allocations: 334 kB / 1.176 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.8197, allocations: 460.9 kB / 1.177 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.8211, allocations: 0.6133 MB / 1.178 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/0.8231, allocations: 0.9418 MB / 1.178 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.8231, allocations: 0 / 1.178 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002976/0.8261, allocations: 1.236 MB / 1.18 GB, free: 4.934 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.709e-05/0.8261, allocations: 39.58 kB / 1.18 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.8261, allocations: 7.984 kB / 1.18 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.8262, allocations: 11.94 kB / 1.18 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000938/0.8271, allocations: 196 kB / 1.18 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.8271, allocations: 4 kB / 1.18 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.8286, allocations: 270.9 kB / 1.18 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.924e-05/0.8287, allocations: 31.98 kB / 1.18 GB, free: 4.379 MB / 0.9356 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 (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 (67): * Single equations (assignments): 66 * 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.0003949/0.8291, allocations: 331.3 kB / 1.181 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.8293, allocations: 118.6 kB / 1.181 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.8313, allocations: 0.9967 MB / 1.182 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.8313, allocations: 7.938 kB / 1.182 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.8313, allocations: 4 kB / 1.182 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.8313, allocations: 3.984 kB / 1.182 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004319/0.8356, allocations: 3.166 MB / 1.185 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.8357, allocations: 8 kB / 1.185 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005519/0.8362, allocations: 128 kB / 1.185 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.8362, allocations: 8 kB / 1.185 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.8363, allocations: 20 kB / 1.185 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-05/0.8363, allocations: 15.92 kB / 1.185 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.8363, allocations: 15.94 kB / 1.185 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.8383, allocations: 1.334 MB / 1.186 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004391/0.8387, allocations: 331.4 kB / 1.187 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.8389, allocations: 20 kB / 1.187 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.84, allocations: 111.9 kB / 1.187 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.8401, allocations: 63.7 kB / 1.187 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.828e-05/0.8402, allocations: 35.97 kB / 1.187 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001577/0.8418, allocations: 0.8755 MB / 1.188 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8418, allocations: 0 / 1.188 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001108/0.8429, allocations: 303.8 kB / 1.188 GB, free: 12.18 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 (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.003191/0.8461, allocations: 2.126 MB / 1.19 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002358/0.8485, allocations: 1.052 MB / 1.191 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.8485, allocations: 0 / 1.191 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008616/0.8494, allocations: 0.518 MB / 1.191 GB, free: 8.344 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.8519, allocations: 0.552 MB / 1.192 GB, free: 7.812 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/0.8676, allocations: 9.993 MB / 1.202 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005927/0.8682, allocations: 1.073 MB / 1.203 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001011/0.8692, allocations: 277.7 kB / 1.203 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004718/0.8697, allocations: 355.3 kB / 1.203 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of SimCode: time 6.41e-07/0.8697, allocations: 0 / 1.203 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.051/3.921, allocations: 31.54 MB / 1.234 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/15.05, allocations: 21.14 kB / 1.234 GB, free: 12.36 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)