Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.CHPs.BaseClasses.Validation.EnergyConversionNormal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opeModBas.PEle|opeModBas.QGen_flow|opeModBas.mWat_flow|opeModBas.TWatIn|opeModBas.mAir_flow|opeModBas.mFue_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opeModBas.PEle|opeModBas.QGen_flow|opeModBas.mWat_flow|opeModBas.TWatIn|opeModBas.mAir_flow|opeModBas.mFue_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008682/0.008682, allocations: 99.34 kB / 15.73 MB, free: 6.035 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.001553/0.001553, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.81/2.81, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001313, allocations: 60.12 kB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3473, allocations: 159.9 MB / 1.226 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal): time 0.003951/0.3513, allocations: 2.271 MB / 1.228 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001732/0.3531, allocations: 0.9516 MB / 1.229 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.3533, allocations: 4 kB / 1.229 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008255/0.3542, allocations: 186.9 kB / 1.229 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.3545, allocations: 71.42 kB / 1.229 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.3551, allocations: 111.7 kB / 1.229 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.3555, allocations: 219.1 kB / 1.229 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.3557, allocations: 89.69 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.3559, allocations: 91.45 kB / 1.229 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.3561, allocations: 99.44 kB / 1.23 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.3562, allocations: 16 kB / 1.23 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003578/0.3565, allocations: 151.8 kB / 1.23 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.3567, allocations: 215.4 kB / 1.23 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.357, allocations: 266.1 kB / 1.23 GB, free: 4.449 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000905/0.3579, allocations: 0.727 MB / 1.231 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3579, allocations: 0 / 1.231 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3579, allocations: 0 / 1.231 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.987e-05/0.358, allocations: 0 / 1.231 GB, free: 3.719 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.00157/0.3596, allocations: 1.01 MB / 1.232 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3596, allocations: 11.97 kB / 1.232 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005574/0.3602, allocations: 124.3 kB / 1.232 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009103/0.3611, allocations: 0.602 MB / 1.233 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.3611, allocations: 8.375 kB / 1.233 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.3611, allocations: 12.38 kB / 1.233 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000408/0.3616, allocations: 198.2 kB / 1.233 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/0.3616, allocations: 192 / 1.233 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.3616, allocations: 7.938 kB / 1.233 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.3616, allocations: 4 kB / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.3621, allocations: 231.8 kB / 1.233 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.3634, allocations: 0.9179 MB / 1.234 GB, free: 460 kB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006179/0.364, allocations: 318.5 kB / 1.234 GB, free: 132 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.3642, allocations: 101 kB / 1.234 GB, free: 28 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007075/0.3649, allocations: 248.8 kB / 1.235 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3649, allocations: 42.56 kB / 1.235 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.365, allocations: 0 / 1.235 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0008086/0.3658, allocations: 397 kB / 1.235 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.3658, allocations: 55.39 kB / 1.235 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.367, allocations: 1.001 MB / 1.236 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.3671, allocations: 25.7 kB / 1.236 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.3673, allocations: 340.2 kB / 1.236 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.3674, allocations: 31.73 kB / 1.236 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.687e-05/0.3674, allocations: 29.7 kB / 1.236 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3676, allocations: 306 kB / 1.237 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3678, allocations: 103.9 kB / 1.237 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.368, allocations: 118.5 kB / 1.237 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.3684, allocations: 222.8 kB / 1.237 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3684, allocations: 0 / 1.237 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005764/0.369, allocations: 332.9 kB / 1.237 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.369, allocations: 10.03 kB / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3691, allocations: 0 / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3691, allocations: 0 / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.3692, allocations: 27.97 kB / 1.238 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3693, allocations: 0 / 1.238 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.3694, allocations: 19.95 kB / 1.238 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3694, allocations: 0 / 1.238 GB, free: 12.66 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 11 * 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.0002507/0.3697, allocations: 254.2 kB / 1.238 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.3698, allocations: 83.42 kB / 1.238 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006118/0.3704, allocations: 324.5 kB / 1.238 GB, free: 12 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3704, allocations: 3.938 kB / 1.238 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3704, allocations: 0 / 1.238 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3704, allocations: 0 / 1.238 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005199/0.371, allocations: 0.5286 MB / 1.239 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.371, allocations: 3.938 kB / 1.239 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.3711, allocations: 23.97 kB / 1.239 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3711, allocations: 0 / 1.239 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3712, allocations: 0 / 1.239 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3712, allocations: 0 / 1.239 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3712, allocations: 4 kB / 1.239 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005516/0.3717, allocations: 419 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.3719, allocations: 184.5 kB / 1.239 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.372, allocations: 7.938 kB / 1.239 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.3722, allocations: 8 kB / 1.239 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.3722, allocations: 11.98 kB / 1.239 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3722, allocations: 4 kB / 1.239 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008516/0.3731, allocations: 0.7176 MB / 1.24 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3731, allocations: 0 / 1.24 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003536/0.3735, allocations: 75.83 kB / 1.24 GB, free: 9.938 MB / 0.9981 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 (9): * Single equations (assignments): 9 * 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.0002059/0.3737, allocations: 103.2 kB / 1.24 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004823/0.3742, allocations: 223.8 kB / 1.24 GB, free: 9.605 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3742, allocations: 0 / 1.24 GB, free: 9.605 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.3744, allocations: 107.9 kB / 1.241 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.3748, allocations: 55.58 kB / 1.241 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.3765, allocations: 1.172 MB / 1.242 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007371/0.3772, allocations: 0.9451 MB / 1.243 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002264/0.3775, allocations: 77.33 kB / 1.243 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.3776, allocations: 39.42 kB / 1.243 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of SimCode: time 5.52e-07/0.3776, allocations: 0 / 1.243 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of Templates: time 0.0112/0.3888, allocations: 4.461 MB / 1.247 GB, free: 2.707 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches