Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.001917/0.001917, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002397/0.002397, allocations: 220.7 kB / 23.03 MB, free: 4.945 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.504/1.504, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.322/3.322, allocations: 0.49 GB / 0.7959 GB, free: 35.46 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: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_12_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_12_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="cs",version="2.0",platforms={"static"}) [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.00203/0.00203, allocations: 70.12 kB / 1.155 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3637, allocations: 176.1 MB / 1.327 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006624/0.3704, allocations: 3.897 MB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0002196/0.3706, allocations: 147.5 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.956e-05/0.3706, allocations: 4 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.3707, allocations: 3.984 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.015e-05/0.3708, allocations: 15.86 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.3712, allocations: 90.67 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.232e-05/0.3713, allocations: 31.91 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.048e-05/0.3714, allocations: 0 / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.299e-05/0.3714, allocations: 19.98 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.546e-05/0.3715, allocations: 15.92 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.3715, allocations: 11.88 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.3717, allocations: 47.81 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.018e-05/0.3717, allocations: 8 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.276e-05/0.3718, allocations: 11.97 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.3719, allocations: 60.09 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3719, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3719, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3719, allocations: 0 / 1.331 GB, free: 13.14 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004075/0.3724, allocations: 258.3 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.3724, allocations: 16.03 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.553e-05/0.3724, allocations: 192 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.3724, allocations: 34.73 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.3725, allocations: 4.938 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.3726, allocations: 110.5 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.3727, allocations: 51.97 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.3727, allocations: 7.938 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.3728, allocations: 67.39 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3728, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.3728, allocations: 4 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.3729, allocations: 8 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.873e-05/0.3729, allocations: 11.98 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.3734, allocations: 235.9 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.127e-05/0.3734, allocations: 18.52 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.986e-05/0.3734, allocations: 12.92 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.3735, allocations: 4 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.3735, allocations: 34.56 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3735, allocations: 0 / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001618/0.3737, allocations: 41.67 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.3737, allocations: 55.44 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.3738, allocations: 105.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.3739, allocations: 25.7 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.228e-05/0.3739, allocations: 88.08 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.028e-05/0.3739, allocations: 11.94 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.374, allocations: 13.72 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3741, allocations: 314.8 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/0.3741, allocations: 7.984 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.024e-05/0.3742, allocations: 17.72 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.814e-05/0.3742, allocations: 21.72 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3742, allocations: 3.938 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.877e-05/0.3743, allocations: 45.69 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3743, allocations: 4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3743, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3743, allocations: 3.938 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.569e-05/0.3744, allocations: 8 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.3744, allocations: 0 / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.476e-05/0.3744, allocations: 15.88 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.3744, allocations: 12 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 8.74e-05/0.3745, allocations: 106.4 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.3745, allocations: 4 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.3747, allocations: 109 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-05/0.3748, allocations: 192.2 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.471e-05/0.3749, allocations: 176.3 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.709e-05/0.375, allocations: 176.3 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.3752, allocations: 384.2 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.653e-05/0.3753, allocations: 105 kB / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.373e-05/0.3753, allocations: 108.9 kB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.218e-05/0.3754, allocations: 180.3 kB / 1.334 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.439e-05/0.3755, allocations: 180.3 kB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.709e-05/0.3756, allocations: 184.2 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.887e-05/0.3756, allocations: 180.3 kB / 1.334 GB, free: 9.105 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.3758, allocations: 307.7 kB / 1.335 GB, free: 8.781 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.745e-05/0.3759, allocations: 105 kB / 1.335 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.65e-05/0.376, allocations: 188.2 kB / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3761, allocations: 105 kB / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.3762, allocations: 184.2 kB / 1.335 GB, free: 8.184 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.3763, allocations: 105 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.073e-05/0.3764, allocations: 91.22 kB / 1.335 GB, free: 7.984 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3764, allocations: 4 kB / 1.335 GB, free: 7.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002988/0.3767, allocations: 19.88 kB / 1.335 GB, free: 7.961 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 (0): * Single equations (assignments): 0 * 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.0007881/0.3774, allocations: 0.8281 MB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001101/0.3776, allocations: 4 kB / 1.336 GB, free: 7.098 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3776, allocations: 0 / 1.336 GB, free: 7.098 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.384e-06/0.3776, allocations: 0 / 1.336 GB, free: 7.098 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007446/0.3783, allocations: 473.2 kB / 1.337 GB, free: 6.633 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.3797, allocations: 1.325 MB / 1.338 GB, free: 5.223 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.964e-05/0.3798, allocations: 59.34 kB / 1.338 GB, free: 5.145 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.757e-05/0.3798, allocations: 4 kB / 1.338 GB, free: 5.141 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.494e-05/0.3799, allocations: 7.438 kB / 1.338 GB, free: 5.133 MB / 1.029 GB Notification: Performance of SimCode: time 1.152e-06/0.3799, allocations: 3.938 kB / 1.338 GB, free: 5.129 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.4051, allocations: 1.699 MB / 1.34 GB, free: 3.578 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.73, allocations: 3.875 kB / 1.34 GB, free: 3.578 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_12_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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: 18.77283023588825]