Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.0064/0.0064, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.001152/0.001152, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.834/2.834, allocations: 469.8 MB / 0.7425 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 72.08 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.363, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006174/0.3691, allocations: 4.588 MB / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.3703, allocations: 0.8177 MB / 1.226 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.755e-05/0.3703, allocations: 4 kB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.3706, allocations: 31.77 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.982e-05/0.3706, allocations: 35.7 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.3712, allocations: 171.4 kB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002137/0.3714, allocations: 171.4 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3715, allocations: 17.08 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.3717, allocations: 83.77 kB / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.3718, allocations: 87.59 kB / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.3718, allocations: 12 kB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003312/0.3721, allocations: 151.8 kB / 1.227 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.579e-05/0.3722, allocations: 35.89 kB / 1.227 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.972e-05/0.3722, allocations: 67.66 kB / 1.227 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003607/0.3726, allocations: 235.2 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3726, allocations: 0 / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3726, allocations: 3.938 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.816e-06/0.3726, allocations: 3.984 kB / 1.227 GB, free: 7.27 MB / 0.9825 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.0008789/0.3735, allocations: 478.6 kB / 1.227 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3735, allocations: 16.02 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.332e-05/0.3736, allocations: 16.84 kB / 1.227 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.3737, allocations: 190.6 kB / 1.228 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3738, allocations: 16.28 kB / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.3738, allocations: 12.38 kB / 1.228 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.3741, allocations: 123.9 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.3741, allocations: 0 / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.3741, allocations: 0 / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3741, allocations: 4 kB / 1.228 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.3746, allocations: 147.8 kB / 1.228 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.3756, allocations: 456.5 kB / 1.228 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.3759, allocations: 118.5 kB / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.376, allocations: 64.81 kB / 1.229 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00138/0.3774, allocations: 0.9644 MB / 1.229 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.3775, allocations: 38.5 kB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.3775, allocations: 0 / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006551/0.3781, allocations: 209.7 kB / 1.23 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.3782, allocations: 55.41 kB / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.3783, allocations: 171.9 kB / 1.23 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.3784, allocations: 33.64 kB / 1.23 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.152e-05/0.3784, allocations: 104.5 kB / 1.23 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.3785, allocations: 39.64 kB / 1.23 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.45e-05/0.3786, allocations: 49.7 kB / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3787, allocations: 330.8 kB / 1.23 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.379, allocations: 79.88 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.3792, allocations: 112.8 kB / 1.231 GB, free: 3.133 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.3796, allocations: 169.2 kB / 1.231 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3796, allocations: 0 / 1.231 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005843/0.3802, allocations: 241.3 kB / 1.231 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3802, allocations: 8 kB / 1.231 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.3803, allocations: 7.984 kB / 1.231 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.3803, allocations: 3.938 kB / 1.231 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.3806, allocations: 55.91 kB / 1.231 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.3806, allocations: 4 kB / 1.231 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.3807, allocations: 31.81 kB / 1.231 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.3808, allocations: 7.984 kB / 1.231 GB, free: 2.598 MB / 0.9825 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.0001358/0.3809, allocations: 130.3 kB / 1.231 GB, free: 2.461 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.3809, allocations: 11.91 kB / 1.231 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004978/0.3814, allocations: 178.9 kB / 1.231 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3814, allocations: 4 kB / 1.231 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3814, allocations: 0 / 1.231 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3815, allocations: 0 / 1.231 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/0.3817, allocations: 225.5 kB / 1.232 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3817, allocations: 0 / 1.232 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.3819, allocations: 35.91 kB / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3819, allocations: 0 / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.3819, allocations: 3.938 kB / 1.232 GB, free: 1.957 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3819, allocations: 4 kB / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3819, allocations: 0 / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004674/0.3824, allocations: 255.4 kB / 1.232 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.573e-05/0.3825, allocations: 101 kB / 1.232 GB, free: 1.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.3825, allocations: 7.875 kB / 1.232 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.3826, allocations: 19.92 kB / 1.232 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.3827, allocations: 7.984 kB / 1.232 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.3827, allocations: 4 kB / 1.232 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.445e-05/0.3828, allocations: 120 kB / 1.232 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3828, allocations: 0 / 1.232 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003585/0.3831, allocations: 59.88 kB / 1.232 GB, free: 1.355 MB / 0.9825 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.0003277/0.3835, allocations: 160.8 kB / 1.232 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004886/0.384, allocations: 168.6 kB / 1.233 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.384, allocations: 0 / 1.233 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.3841, allocations: 63.89 kB / 1.233 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.3845, allocations: 29.03 kB / 1.233 GB, free: 0.9336 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000496/0.385, allocations: 249.5 kB / 1.233 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.3853, allocations: 0.7083 MB / 1.234 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.198e-05/0.3854, allocations: 24.95 kB / 1.234 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.3855, allocations: 19.44 kB / 1.234 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.3855, allocations: 0 / 1.234 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of Templates: time 0.006143/0.3916, allocations: 2.755 MB / 1.236 GB, free: 13.16 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches