Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hANatCyl.hA",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hANatCyl.hA",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.006435/0.006435, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.395/1.395, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.375/2.375, allocations: 390.9 MB / 0.6663 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003331, allocations: 16 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6448/0.6452, allocations: 142.4 MB / 0.955 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.004834/0.65, allocations: 4.248 MB / 0.9592 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009247/0.651, allocations: 0.8087 MB / 0.96 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.009e-05/0.6511, allocations: 0 / 0.96 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.6513, allocations: 24.55 kB / 0.96 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.908e-05/0.6514, allocations: 27.77 kB / 0.96 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.6519, allocations: 152.3 kB / 0.9602 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001723/0.6521, allocations: 169.5 kB / 0.9603 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.965e-05/0.6522, allocations: 21.14 kB / 0.9604 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.6523, allocations: 72.75 kB / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.727e-05/0.6525, allocations: 72.47 kB / 0.9605 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.6525, allocations: 10.88 kB / 0.9605 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003357/0.6528, allocations: 141.9 kB / 0.9606 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.687e-05/0.6529, allocations: 33.33 kB / 0.9607 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.832e-05/0.6529, allocations: 80.67 kB / 0.9607 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.6533, allocations: 228.7 kB / 0.961 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.6534, allocations: 0 / 0.961 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6534, allocations: 0 / 0.961 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.6534, allocations: 1.719 kB / 0.961 GB, free: 2.926 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008614/0.6542, allocations: 475.7 kB / 0.9614 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.6543, allocations: 9.781 kB / 0.9614 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.6544, allocations: 11.38 kB / 0.9614 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.6545, allocations: 191.8 kB / 0.9616 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.6545, allocations: 8.156 kB / 0.9616 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.6545, allocations: 15.59 kB / 0.9616 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.6549, allocations: 130.6 kB / 0.9618 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.6549, allocations: 5.125 kB / 0.9618 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.6549, allocations: 8 kB / 0.9618 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.6549, allocations: 2.281 kB / 0.9618 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.6554, allocations: 163.3 kB / 0.9619 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009413/0.6563, allocations: 467.3 kB / 0.9624 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.6567, allocations: 139.8 kB / 0.9625 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.6569, allocations: 81.56 kB / 0.9626 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001234/0.6581, allocations: 0.9556 MB / 0.9635 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.6582, allocations: 35.53 kB / 0.9636 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.6582, allocations: 0 / 0.9636 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0008192/0.659, allocations: 250.8 kB / 0.9638 GB, free: 408 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.659, allocations: 56.97 kB / 0.9639 GB, free: 340 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.6592, allocations: 163 kB / 0.964 GB, free: 204 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.6592, allocations: 30.67 kB / 0.964 GB, free: 168 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.6593, allocations: 113.8 kB / 0.9642 GB, free: 56 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.6593, allocations: 43.42 kB / 0.9642 GB, free: 16 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.662e-05/0.6594, allocations: 30.11 kB / 0.9642 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6596, allocations: 322.5 kB / 0.9645 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.6598, allocations: 77.45 kB / 0.9646 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.6601, allocations: 130 kB / 0.9647 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.6607, allocations: 200.3 kB / 0.9649 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.6607, allocations: 0 / 0.9649 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000689/0.6614, allocations: 264.8 kB / 0.9652 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.6614, allocations: 9.938 kB / 0.9652 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.6614, allocations: 4.938 kB / 0.9652 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.6614, allocations: 2 kB / 0.9652 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.6617, allocations: 57.48 kB / 0.9652 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.6618, allocations: 5.969 kB / 0.9652 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.662, allocations: 36.3 kB / 0.9653 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.662, allocations: 5.812 kB / 0.9653 GB, free: 15.28 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001137/0.6621, allocations: 124.6 kB / 0.9654 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.366e-05/0.6622, allocations: 18.38 kB / 0.9654 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005583/0.6628, allocations: 209.3 kB / 0.9656 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.6628, allocations: 1.375 kB / 0.9656 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6628, allocations: 1.281 kB / 0.9656 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.6628, allocations: 3.984 kB / 0.9656 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.663, allocations: 214.8 kB / 0.9658 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.6631, allocations: 0 / 0.9658 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.6632, allocations: 30.17 kB / 0.9659 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.6632, allocations: 5.219 kB / 0.9659 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.6633, allocations: 17.42 kB / 0.9659 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.6633, allocations: 0 / 0.9659 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.6633, allocations: 0 / 0.9659 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005147/0.6638, allocations: 285.5 kB / 0.9662 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.379e-05/0.6639, allocations: 101.6 kB / 0.9663 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.6639, allocations: 1 kB / 0.9663 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.6641, allocations: 23.14 kB / 0.9663 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.6641, allocations: 8.641 kB / 0.9663 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.6642, allocations: 6.234 kB / 0.9663 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.28e-05/0.6642, allocations: 113.1 kB / 0.9664 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6642, allocations: 0 / 0.9664 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003819/0.6646, allocations: 61.05 kB / 0.9665 GB, free: 14.31 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000371/0.665, allocations: 157.5 kB / 0.9666 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000576/0.6656, allocations: 199.2 kB / 0.9668 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.6656, allocations: 0 / 0.9668 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.6658, allocations: 79.14 kB / 0.9669 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.6663, allocations: 20.73 kB / 0.9669 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005234/0.6668, allocations: 303.5 kB / 0.9672 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.6671, allocations: 0.7025 MB / 0.9679 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001135/0.6672, allocations: 21.2 kB / 0.9679 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.6673, allocations: 19.11 kB / 0.9679 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.6673, allocations: 4.938 kB / 0.9679 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of Templates: time 0.006517/0.6738, allocations: 2.528 MB / 0.9704 GB, free: 11.81 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches