Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001209/0.001209, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001302/0.001302, allocations: 193.4 kB / 17.31 MB, free: 5.613 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.465/2.465, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 67.91 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3182, allocations: 153 MB / 1.027 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.007606/0.3259, allocations: 4.594 MB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.3271, allocations: 0.803 MB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.118e-05/0.3271, allocations: 8 kB / 1.032 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.3274, allocations: 31.77 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.936e-05/0.3275, allocations: 31.7 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005991/0.3281, allocations: 167.4 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002093/0.3283, allocations: 175.4 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.3284, allocations: 25.05 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.3286, allocations: 79.75 kB / 1.033 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.3288, allocations: 75.72 kB / 1.033 GB, free: 12 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.3288, allocations: 12 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003384/0.3291, allocations: 151.8 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.908e-05/0.3292, allocations: 43.83 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.005e-05/0.3293, allocations: 63.72 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003607/0.3296, allocations: 243.2 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3296, allocations: 0 / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3297, allocations: 0 / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.3297, allocations: 0 / 1.033 GB, free: 11.5 MB / 0.8106 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.0009366/0.3306, allocations: 475 kB / 1.034 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.3307, allocations: 12.02 kB / 1.034 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.3307, allocations: 16.75 kB / 1.034 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.3309, allocations: 181.6 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.3309, allocations: 8.312 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.653e-05/0.3309, allocations: 12.38 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.3313, allocations: 132.5 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-06/0.3313, allocations: 7.938 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.3313, allocations: 4 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3313, allocations: 4 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.3317, allocations: 135.9 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009836/0.3327, allocations: 464.5 kB / 1.034 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.333, allocations: 130.4 kB / 1.035 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.3332, allocations: 76.81 kB / 1.035 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001325/0.3345, allocations: 0.9529 MB / 1.036 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.3346, allocations: 34.56 kB / 1.036 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.3346, allocations: 0 / 1.036 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0006249/0.3352, allocations: 221.2 kB / 1.036 GB, free: 8.371 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.3353, allocations: 59.34 kB / 1.036 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.3354, allocations: 160.8 kB / 1.036 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.3354, allocations: 29.7 kB / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.3355, allocations: 108.3 kB / 1.036 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.3356, allocations: 51.36 kB / 1.036 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.3356, allocations: 41.7 kB / 1.036 GB, free: 7.895 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3358, allocations: 326.8 kB / 1.037 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.336, allocations: 71.94 kB / 1.037 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.3362, allocations: 113.3 kB / 1.037 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003862/0.3366, allocations: 172.3 kB / 1.037 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3366, allocations: 4 kB / 1.037 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005217/0.3372, allocations: 235.7 kB / 1.037 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3372, allocations: 8 kB / 1.037 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3372, allocations: 0 / 1.037 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.3372, allocations: 7.922 kB / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.3375, allocations: 59.91 kB / 1.037 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3375, allocations: 4.094 kB / 1.037 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.3377, allocations: 35.67 kB / 1.037 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.3377, allocations: 7.984 kB / 1.037 GB, free: 6.836 MB / 0.8106 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 9.747e-05/0.3378, allocations: 129.7 kB / 1.037 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.3379, allocations: 11.81 kB / 1.037 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004519/0.3383, allocations: 186.8 kB / 1.038 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3383, allocations: 0 / 1.038 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3383, allocations: 0 / 1.038 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3383, allocations: 0 / 1.038 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.3386, allocations: 217.5 kB / 1.038 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3386, allocations: 0 / 1.038 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.3387, allocations: 31.97 kB / 1.038 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3387, allocations: 0 / 1.038 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.3387, allocations: 3.938 kB / 1.038 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3388, allocations: 4 kB / 1.038 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3388, allocations: 4 kB / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.3392, allocations: 263.6 kB / 1.038 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.31e-05/0.3393, allocations: 96.98 kB / 1.038 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.3393, allocations: 3.938 kB / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.3394, allocations: 23.92 kB / 1.038 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.3395, allocations: 7.984 kB / 1.038 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.3395, allocations: 4 kB / 1.038 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.571e-05/0.3396, allocations: 116 kB / 1.038 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3396, allocations: 0 / 1.038 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003446/0.3399, allocations: 60.31 kB / 1.038 GB, free: 5.598 MB / 0.8106 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.0002828/0.3402, allocations: 155.2 kB / 1.039 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004726/0.3407, allocations: 175.9 kB / 1.039 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3407, allocations: 0 / 1.039 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.3409, allocations: 67.89 kB / 1.039 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.3413, allocations: 23.98 kB / 1.039 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004627/0.3417, allocations: 253.2 kB / 1.039 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.342, allocations: 0.7006 MB / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.439e-05/0.3421, allocations: 25 kB / 1.04 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/0.3421, allocations: 15.44 kB / 1.04 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3421, allocations: 0 / 1.04 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of Templates: time 0.006707/0.3488, allocations: 2.733 MB / 1.042 GB, free: 1.434 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches