Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007482/0.007482, 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.001741/0.001741, allocations: 192.2 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.5/2.5, allocations: 469.4 MB / 0.7422 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 67.91 kB / 1.064 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8471/0.8486, allocations: 159.1 MB / 1.22 GB, free: 2.32 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ): time 0.00179/0.8504, allocations: 0.5952 MB / 1.22 GB, free: 1.723 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.8528, allocations: 1.722 MB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.503e-05/0.8529, allocations: 4 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.431e-05/0.8529, allocations: 7.922 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.326e-05/0.853, allocations: 3.906 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.854, allocations: 301.7 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.8542, allocations: 135.8 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.8542, allocations: 0 / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.302e-05/0.8543, allocations: 47.91 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.8544, allocations: 59.92 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.8545, allocations: 4 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.855, allocations: 343.5 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.8551, allocations: 35.91 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.643e-05/0.8552, allocations: 47.7 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004213/0.8556, allocations: 275 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.8556, allocations: 0 / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.042e-06/0.8556, allocations: 0 / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.8556, allocations: 0 / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006779/0.8563, allocations: 446.8 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.8564, allocations: 12.62 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.097e-05/0.8564, allocations: 46.73 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.8565, allocations: 12.89 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.8566, allocations: 184.2 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.8566, allocations: 8.375 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.8566, allocations: 19.94 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.857, allocations: 222.6 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.857, allocations: 4 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.857, allocations: 8 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.857, allocations: 4 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003164/0.8574, allocations: 175.8 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003708/0.8577, allocations: 283 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007126/0.8585, allocations: 407.8 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.8587, allocations: 185.1 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003748/0.8591, allocations: 195.2 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.8591, allocations: 42.5 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.8591, allocations: 4 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30): time 0.0006271/0.8598, allocations: 386.7 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.8598, allocations: 187.9 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.625e-05/0.8599, allocations: 97.86 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.8599, allocations: 29.7 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.538e-05/0.86, allocations: 80.7 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.546e-05/0.8601, allocations: 107.1 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.421e-05/0.8601, allocations: 61.81 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.8602, allocations: 322.8 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.8604, allocations: 87.92 kB / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.8605, allocations: 133.1 kB / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.8609, allocations: 261.1 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.8609, allocations: 3.938 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000413/0.8613, allocations: 289.2 kB / 1.227 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.8613, allocations: 4 kB / 1.227 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.8613, allocations: 7.984 kB / 1.227 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.8614, allocations: 0 / 1.227 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.8616, allocations: 55.97 kB / 1.227 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.8616, allocations: 7.938 kB / 1.227 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.867e-05/0.8617, allocations: 15.89 kB / 1.227 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.8618, allocations: 11.98 kB / 1.227 GB, free: 10.01 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.000108/0.8619, allocations: 146.2 kB / 1.228 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.853e-05/0.8619, allocations: 15.91 kB / 1.228 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005494/0.8625, allocations: 357.2 kB / 1.228 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.8625, allocations: 7.984 kB / 1.228 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.8625, allocations: 4 kB / 1.228 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.8625, allocations: 0 / 1.228 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.8627, allocations: 257.4 kB / 1.228 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.8628, allocations: 8 kB / 1.228 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.863, allocations: 55.91 kB / 1.228 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.863, allocations: 4 kB / 1.228 GB, free: 9.109 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.863, allocations: 11.98 kB / 1.228 GB, free: 9.098 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.863, allocations: 11.88 kB / 1.228 GB, free: 9.086 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.863, allocations: 0 / 1.228 GB, free: 9.086 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.8635, allocations: 341.6 kB / 1.229 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.8636, allocations: 121 kB / 1.229 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.8636, allocations: 4.375 kB / 1.229 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.8637, allocations: 8 kB / 1.229 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.8638, allocations: 31.91 kB / 1.229 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.8638, allocations: 11.98 kB / 1.229 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.762e-05/0.8638, allocations: 79.28 kB / 1.229 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8638, allocations: 0 / 1.229 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003775/0.8642, allocations: 103.8 kB / 1.229 GB, free: 8.348 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.001057/0.8653, allocations: 0.9932 MB / 1.23 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003878/0.8657, allocations: 251.6 kB / 1.23 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.8657, allocations: 0 / 1.23 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.8658, allocations: 145.2 kB / 1.23 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.866, allocations: 16 kB / 1.23 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000715/0.8668, allocations: 427.8 kB / 1.231 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.867, allocations: 0.7163 MB / 1.231 GB, free: 5.699 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002059/0.8672, allocations: 105.4 kB / 1.232 GB, free: 5.594 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.014e-05/0.8673, allocations: 43.41 kB / 1.232 GB, free: 5.551 MB / 0.9512 GB Notification: Performance of SimCode: time 2.1e-07/0.8673, allocations: 4 kB / 1.232 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.8882, allocations: 4.138 MB / 1.236 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.272/8.161, allocations: 6.812 kB / 1.236 GB, free: 1.551 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches