Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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.001435/0.001435, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001621/0.001621, allocations: 216.3 kB / 23.01 MB, free: 4.566 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.326/1.326, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 179] 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 2.885/2.885, allocations: 0.49 GB / 0.7958 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 177] 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.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") [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.001891/0.001891, allocations: 74.75 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2844, allocations: 176.1 MB / 1.327 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1612/0.4456, allocations: 151.6 MB / 1.475 GB, free: 9.254 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.0001293/0.4457, allocations: 47.86 kB / 1.475 GB, free: 9.207 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.622e-05/0.4457, allocations: 4 kB / 1.475 GB, free: 9.203 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 9.413e-05/0.4458, allocations: 7.938 kB / 1.475 GB, free: 9.195 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 6.333e-05/0.4459, allocations: 11.97 kB / 1.475 GB, free: 9.184 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.4466, allocations: 227.1 kB / 1.475 GB, free: 8.961 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 7.645e-05/0.4467, allocations: 35.91 kB / 1.475 GB, free: 8.926 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 3.307e-05/0.4467, allocations: 4 kB / 1.475 GB, free: 8.922 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 3.578e-05/0.4467, allocations: 19.91 kB / 1.476 GB, free: 8.902 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 6.286e-05/0.4468, allocations: 11.98 kB / 1.476 GB, free: 8.891 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.4468, allocations: 0 / 1.476 GB, free: 8.891 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003984/0.4472, allocations: 219.3 kB / 1.476 GB, free: 8.676 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.4472, allocations: 11.97 kB / 1.476 GB, free: 8.664 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 2.279e-05/0.4473, allocations: 8 kB / 1.476 GB, free: 8.656 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.4475, allocations: 107.7 kB / 1.476 GB, free: 8.551 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.4475, allocations: 4 kB / 1.476 GB, free: 8.547 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4475, allocations: 0 / 1.476 GB, free: 8.547 MB / 1.17 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.4475, allocations: 4 kB / 1.476 GB, free: 8.543 MB / 1.17 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003538/0.4479, allocations: 274.2 kB / 1.476 GB, free: 8.246 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.4479, allocations: 12.03 kB / 1.476 GB, free: 8.234 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002783/0.4482, allocations: 20.91 kB / 1.476 GB, free: 8.215 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.338e-05/0.4483, allocations: 106.5 kB / 1.476 GB, free: 8.086 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.794e-05/0.4483, allocations: 59.28 kB / 1.476 GB, free: 8.016 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.4483, allocations: 4 kB / 1.476 GB, free: 8.012 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.4485, allocations: 49.69 kB / 1.476 GB, free: 7.957 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.4485, allocations: 0 / 1.476 GB, free: 7.957 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.4485, allocations: 7.922 kB / 1.476 GB, free: 7.949 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.4485, allocations: 0 / 1.476 GB, free: 7.949 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.882e-05/0.4485, allocations: 23.98 kB / 1.476 GB, free: 7.926 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003243/0.4489, allocations: 228 kB / 1.477 GB, free: 7.66 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 5.536e-05/0.4489, allocations: 34.5 kB / 1.477 GB, free: 7.617 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.687e-05/0.4489, allocations: 4.859 kB / 1.477 GB, free: 7.609 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.449, allocations: 16.06 kB / 1.477 GB, free: 7.594 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4491, allocations: 42.55 kB / 1.477 GB, free: 7.543 MB / 1.17 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.4491, allocations: 0 / 1.477 GB, free: 7.543 MB / 1.17 GB Notification: Performance of matching and sorting (n=2): time 0.000232/0.4493, allocations: 49.78 kB / 1.477 GB, free: 7.488 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.4494, allocations: 59.34 kB / 1.477 GB, free: 7.418 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.351e-05/0.4494, allocations: 101.9 kB / 1.477 GB, free: 7.309 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.4494, allocations: 29.64 kB / 1.477 GB, free: 7.273 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.4495, allocations: 92.08 kB / 1.477 GB, free: 7.18 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 7.995e-06/0.4495, allocations: 7.891 kB / 1.477 GB, free: 7.172 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.4495, allocations: 17.72 kB / 1.477 GB, free: 7.148 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4497, allocations: 310.8 kB / 1.477 GB, free: 6.836 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.265e-05/0.4497, allocations: 8.031 kB / 1.477 GB, free: 6.828 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.084e-05/0.4497, allocations: 30.59 kB / 1.477 GB, free: 6.789 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.868e-05/0.4497, allocations: 34.52 kB / 1.477 GB, free: 6.746 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.4497, allocations: 0 / 1.477 GB, free: 6.746 MB / 1.17 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.006e-05/0.4498, allocations: 57.62 kB / 1.477 GB, free: 6.684 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.4498, allocations: 4 kB / 1.477 GB, free: 6.68 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.4498, allocations: 0 / 1.477 GB, free: 6.68 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4499, allocations: 4 kB / 1.477 GB, free: 6.676 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.89e-05/0.4499, allocations: 4 kB / 1.477 GB, free: 6.672 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.4499, allocations: 7.922 kB / 1.477 GB, free: 6.664 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.727e-05/0.4499, allocations: 4 kB / 1.477 GB, free: 6.66 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.527e-06/0.4499, allocations: 0 / 1.477 GB, free: 6.66 MB / 1.17 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 (4): * Single equations (assignments): 4 * 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 6.984e-05/0.45, allocations: 109.8 kB / 1.478 GB, free: 6.543 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.45, allocations: 8.047 kB / 1.478 GB, free: 6.535 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.873e-05/0.4501, allocations: 7.312 kB / 1.478 GB, free: 6.527 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.4501, allocations: 0 / 1.478 GB, free: 6.527 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.4501, allocations: 7.938 kB / 1.478 GB, free: 6.52 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.4501, allocations: 0 / 1.478 GB, free: 6.52 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.4504, allocations: 334.6 kB / 1.478 GB, free: 6.137 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4504, allocations: 0 / 1.478 GB, free: 6.137 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.452e-05/0.4504, allocations: 8.062 kB / 1.478 GB, free: 6.129 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.4504, allocations: 3.938 kB / 1.478 GB, free: 6.125 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.4504, allocations: 4 kB / 1.478 GB, free: 6.121 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4504, allocations: 0 / 1.478 GB, free: 6.121 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4504, allocations: 3.938 kB / 1.478 GB, free: 6.117 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.867e-05/0.4505, allocations: 65.98 kB / 1.478 GB, free: 6.031 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 1.104e-05/0.4505, allocations: 11.89 kB / 1.478 GB, free: 6.02 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.4505, allocations: 4.031 kB / 1.478 GB, free: 6.016 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.624e-05/0.4506, allocations: 7.984 kB / 1.478 GB, free: 6.008 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.314e-05/0.4506, allocations: 4 kB / 1.478 GB, free: 6.004 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-06/0.4506, allocations: 0 / 1.478 GB, free: 6.004 MB / 1.17 GB Notification: Performance of sorting global known variables: time 4.025e-05/0.4506, allocations: 79.28 kB / 1.478 GB, free: 5.926 MB / 1.17 GB Notification: Performance of sort global known variables: time 6e-08/0.4506, allocations: 0 / 1.478 GB, free: 5.926 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0001961/0.4508, allocations: 8 kB / 1.478 GB, free: 5.918 MB / 1.17 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0001087/0.4509, allocations: 112.8 kB / 1.478 GB, free: 5.801 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 7.498e-05/0.451, allocations: 19.94 kB / 1.478 GB, free: 5.781 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.451, allocations: 0 / 1.478 GB, free: 5.781 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 1.381e-05/0.451, allocations: 11.88 kB / 1.478 GB, free: 5.77 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.4512, allocations: 15.92 kB / 1.478 GB, free: 5.754 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002513/0.4515, allocations: 149.6 kB / 1.478 GB, free: 5.57 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.4517, allocations: 0.6729 MB / 1.479 GB, free: 4.871 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.855e-05/0.4518, allocations: 11.44 kB / 1.479 GB, free: 4.859 MB / 1.17 GB Notification: Performance of SimCode: time 2.81e-07/0.4518, allocations: 0 / 1.479 GB, free: 4.859 MB / 1.17 GB Notification: Performance of Templates: time 0.002013/0.4538, allocations: 0.6131 MB / 1.48 GB, free: 4.246 MB / 1.17 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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: 10.04760795799666]