Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 107.3 kB / 16.46 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002717/0.002717, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 252.8 MB, free: 9.105 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.215/3.215, allocations: 0.4899 GB / 0.7915 GB, free: 33.31 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hANatCyl.hA",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hANatCyl.hA",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 79.05 kB / 1.149 GB, free: 26.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3753, allocations: 176.1 MB / 1.321 GB, free: 2.824 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.007244/0.3825, allocations: 4.69 MB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001213/0.3837, allocations: 0.8178 MB / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.551e-05/0.3838, allocations: 0 / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.384, allocations: 27.78 kB / 1.327 GB, free: 13.26 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.056e-05/0.3841, allocations: 43.69 kB / 1.327 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.3846, allocations: 167.3 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.3848, allocations: 179.3 kB / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.977e-05/0.3849, allocations: 13.11 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.3851, allocations: 95.67 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.3853, allocations: 71.73 kB / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.3853, allocations: 12 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003661/0.3857, allocations: 155.8 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.029e-05/0.3857, allocations: 31.91 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.984e-05/0.3858, allocations: 71.64 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.3862, allocations: 243.1 kB / 1.328 GB, free: 12.2 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3862, allocations: 0 / 1.328 GB, free: 12.2 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3862, allocations: 0 / 1.328 GB, free: 12.2 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.3862, allocations: 0 / 1.328 GB, free: 12.2 MB / 1.029 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.0009552/0.3872, allocations: 486.5 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3872, allocations: 11.98 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.376e-05/0.3873, allocations: 20.84 kB / 1.328 GB, free: 11.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.3874, allocations: 178.3 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.3875, allocations: 12.38 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.3875, allocations: 8.375 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003685/0.3879, allocations: 129.6 kB / 1.329 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3879, allocations: 0 / 1.329 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.3879, allocations: 4 kB / 1.329 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.3879, allocations: 4 kB / 1.329 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.3883, allocations: 143.9 kB / 1.329 GB, free: 11.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.3893, allocations: 464.4 kB / 1.329 GB, free: 10.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.3896, allocations: 122.4 kB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.3898, allocations: 64.81 kB / 1.329 GB, free: 10.43 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/0.3913, allocations: 0.9646 MB / 1.33 GB, free: 9.328 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3913, allocations: 34.56 kB / 1.33 GB, free: 9.285 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.3913, allocations: 0 / 1.33 GB, free: 9.285 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.000742/0.392, allocations: 213.3 kB / 1.33 GB, free: 9.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.3921, allocations: 59.34 kB / 1.331 GB, free: 9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.3922, allocations: 164.3 kB / 1.331 GB, free: 8.828 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.3923, allocations: 25.7 kB / 1.331 GB, free: 8.797 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.386e-05/0.3924, allocations: 120.3 kB / 1.331 GB, free: 8.676 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.3924, allocations: 39.69 kB / 1.331 GB, free: 8.637 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.21e-05/0.3925, allocations: 45.7 kB / 1.331 GB, free: 8.586 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3926, allocations: 322.8 kB / 1.331 GB, free: 8.262 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.3929, allocations: 83.88 kB / 1.331 GB, free: 8.18 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.3931, allocations: 109.6 kB / 1.331 GB, free: 8.062 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004424/0.3936, allocations: 173.1 kB / 1.332 GB, free: 7.883 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3936, allocations: 3.938 kB / 1.332 GB, free: 7.879 MB / 1.029 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005858/0.3942, allocations: 237.3 kB / 1.332 GB, free: 7.641 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.3942, allocations: 16.08 kB / 1.332 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3942, allocations: 0 / 1.332 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3942, allocations: 3.938 kB / 1.332 GB, free: 7.621 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.3945, allocations: 59.91 kB / 1.332 GB, free: 7.562 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3945, allocations: 0 / 1.332 GB, free: 7.562 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.3946, allocations: 31.83 kB / 1.332 GB, free: 7.531 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.3947, allocations: 15.98 kB / 1.332 GB, free: 7.516 MB / 1.029 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.0001126/0.3948, allocations: 125.8 kB / 1.332 GB, free: 7.383 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.3948, allocations: 11.91 kB / 1.332 GB, free: 7.371 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005152/0.3953, allocations: 182.8 kB / 1.332 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.3953, allocations: 0 / 1.332 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3954, allocations: 0 / 1.332 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3954, allocations: 3.938 kB / 1.332 GB, free: 7.176 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.3956, allocations: 209.6 kB / 1.332 GB, free: 6.922 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3956, allocations: 4 kB / 1.332 GB, free: 6.918 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.3958, allocations: 35.97 kB / 1.332 GB, free: 6.883 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3958, allocations: 0 / 1.332 GB, free: 6.883 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.3958, allocations: 3.938 kB / 1.332 GB, free: 6.879 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.3958, allocations: 4 kB / 1.332 GB, free: 6.875 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3958, allocations: 0 / 1.332 GB, free: 6.875 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004841/0.3963, allocations: 255.3 kB / 1.333 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.618e-05/0.3964, allocations: 104.9 kB / 1.333 GB, free: 6.488 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.3964, allocations: 11.88 kB / 1.333 GB, free: 6.477 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3965, allocations: 11.98 kB / 1.333 GB, free: 6.465 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.3966, allocations: 11.98 kB / 1.333 GB, free: 6.453 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.3966, allocations: 4 kB / 1.333 GB, free: 6.449 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.916e-05/0.3967, allocations: 112 kB / 1.333 GB, free: 6.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3967, allocations: 4 kB / 1.333 GB, free: 6.336 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003592/0.3971, allocations: 59.88 kB / 1.333 GB, free: 6.277 MB / 1.029 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.0003222/0.3974, allocations: 163.1 kB / 1.333 GB, free: 6.109 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005224/0.3979, allocations: 166.1 kB / 1.333 GB, free: 5.949 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3979, allocations: 0 / 1.333 GB, free: 5.949 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.3981, allocations: 59.89 kB / 1.333 GB, free: 5.891 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.3985, allocations: 24.39 kB / 1.333 GB, free: 5.867 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005175/0.399, allocations: 256.9 kB / 1.334 GB, free: 5.59 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.3994, allocations: 0.7046 MB / 1.334 GB, free: 4.855 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.285e-05/0.3994, allocations: 21.06 kB / 1.334 GB, free: 4.836 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.77e-05/0.3995, allocations: 19.44 kB / 1.334 GB, free: 4.816 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3995, allocations: 4 kB / 1.334 GB, free: 4.812 MB / 1.029 GB Notification: Performance of Templates: time 0.006836/0.4063, allocations: 2.763 MB / 1.337 GB, free: 2.074 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.261949238367379]