Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.008451/0.008451, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.002027/0.002027, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.397/2.397, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 64.12 kB / 1.019 GB, free: 9.367 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8516/0.8529, allocations: 151.6 MB / 1.167 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006767/0.8597, allocations: 4.587 MB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.8608, allocations: 0.8108 MB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.324e-05/0.861, allocations: 7.938 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.8612, allocations: 31.83 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 7.81e-05/0.8613, allocations: 31.66 kB / 1.172 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006553/0.8619, allocations: 175.4 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.8622, allocations: 175.4 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.8623, allocations: 17.09 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.8625, allocations: 83.75 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.8627, allocations: 79.69 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.8627, allocations: 12 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.8631, allocations: 159.7 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 3.846e-05/0.8631, allocations: 31.91 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 8.211e-05/0.8632, allocations: 67.66 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004157/0.8636, allocations: 235.8 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8637, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8637, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.635e-06/0.8637, allocations: 4 kB / 1.173 GB, free: 13.29 MB / 0.9044 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.0008796/0.8646, allocations: 484.6 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.8646, allocations: 12.03 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.866e-05/0.8647, allocations: 12.89 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.8648, allocations: 197 kB / 1.174 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.8649, allocations: 12.38 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.8649, allocations: 16.31 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.8652, allocations: 117.8 kB / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.8653, allocations: 0 / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.8653, allocations: 0 / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.8653, allocations: 0 / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.8657, allocations: 151.8 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009761/0.8667, allocations: 468.4 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.867, allocations: 122.5 kB / 1.174 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.8672, allocations: 64.81 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001347/0.8685, allocations: 0.9684 MB / 1.175 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.8686, allocations: 34.5 kB / 1.176 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 4.468e-06/0.8686, allocations: 0 / 1.176 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0006875/0.8693, allocations: 213.4 kB / 1.176 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.8693, allocations: 55.41 kB / 1.176 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.8695, allocations: 163.3 kB / 1.176 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.8695, allocations: 33.7 kB / 1.176 GB, free: 9.879 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/0.8696, allocations: 108.4 kB / 1.176 GB, free: 9.77 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.8697, allocations: 43.62 kB / 1.176 GB, free: 9.727 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.773e-05/0.8698, allocations: 49.7 kB / 1.176 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.8699, allocations: 322.8 kB / 1.176 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.8702, allocations: 79.94 kB / 1.177 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.8704, allocations: 103.4 kB / 1.177 GB, free: 9.156 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.8709, allocations: 177.7 kB / 1.177 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.8709, allocations: 0 / 1.177 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005819/0.8715, allocations: 248.1 kB / 1.177 GB, free: 8.727 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.8715, allocations: 4 kB / 1.177 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.8715, allocations: 4 kB / 1.177 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.8715, allocations: 3.938 kB / 1.177 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.8718, allocations: 55.89 kB / 1.177 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.8718, allocations: 4 kB / 1.177 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.872, allocations: 35.77 kB / 1.177 GB, free: 8.621 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.872, allocations: 8 kB / 1.177 GB, free: 8.613 MB / 0.9044 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.0001136/0.8722, allocations: 121.9 kB / 1.177 GB, free: 8.484 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.8722, allocations: 19.89 kB / 1.177 GB, free: 8.465 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004994/0.8727, allocations: 179.2 kB / 1.177 GB, free: 8.285 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.8727, allocations: 4 kB / 1.177 GB, free: 8.281 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.8727, allocations: 3.984 kB / 1.177 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.8727, allocations: 7.938 kB / 1.177 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.873, allocations: 209.6 kB / 1.178 GB, free: 8.016 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.873, allocations: 0 / 1.178 GB, free: 8.016 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.8732, allocations: 35.97 kB / 1.178 GB, free: 7.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.8732, allocations: 0 / 1.178 GB, free: 7.98 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.8732, allocations: 3.938 kB / 1.178 GB, free: 7.977 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.8732, allocations: 4 kB / 1.178 GB, free: 7.973 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.8732, allocations: 3.938 kB / 1.178 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004816/0.8737, allocations: 255.4 kB / 1.178 GB, free: 7.703 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.419e-05/0.8738, allocations: 97 kB / 1.178 GB, free: 7.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.8738, allocations: 11.92 kB / 1.178 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.874, allocations: 15.97 kB / 1.178 GB, free: 7.562 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.874, allocations: 11.98 kB / 1.178 GB, free: 7.551 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.874, allocations: 4 kB / 1.178 GB, free: 7.547 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.082e-05/0.8741, allocations: 128.8 kB / 1.178 GB, free: 7.422 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8741, allocations: 0 / 1.178 GB, free: 7.422 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003417/0.8745, allocations: 55.88 kB / 1.178 GB, free: 7.367 MB / 0.9044 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.0003165/0.8748, allocations: 163 kB / 1.178 GB, free: 7.195 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005071/0.8753, allocations: 167.8 kB / 1.179 GB, free: 7.031 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8753, allocations: 0 / 1.179 GB, free: 7.031 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.8755, allocations: 68.08 kB / 1.179 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.8759, allocations: 22.89 kB / 1.179 GB, free: 6.945 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004842/0.8764, allocations: 261.3 kB / 1.179 GB, free: 6.664 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.8767, allocations: 0.7045 MB / 1.18 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 9.643e-05/0.8768, allocations: 18.83 kB / 1.18 GB, free: 5.914 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.542e-05/0.8769, allocations: 19.44 kB / 1.18 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.8769, allocations: 0 / 1.18 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of Templates: time 0.006244/0.8831, allocations: 2.747 MB / 1.182 GB, free: 3.172 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches