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.001974/0.001974, allocations: 87.69 kB / 20.24 MB, free: 4.188 MB / 18.57 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.002074/0.002074, allocations: 161.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.559/1.559, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.034/3.034, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 0.8108 GB, free: 2.156 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.117e-05/3.259e-05, allocations: 8.594 kB / 0.8108 GB, free: 2.148 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.2092/0.2092, allocations: 143.8 MB / 0.9513 GB, free: 1.84 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0001688/0.2094, allocations: 51.8 kB / 0.9513 GB, free: 1.789 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.608e-05/0.2094, allocations: 0 / 0.9513 GB, free: 1.789 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.2095, allocations: 3.938 kB / 0.9513 GB, free: 1.785 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.2096, allocations: 15.91 kB / 0.9513 GB, free: 1.77 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000907/0.2105, allocations: 215.1 kB / 0.9515 GB, free: 1.559 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.2106, allocations: 39.84 kB / 0.9516 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.2107, allocations: 0 / 0.9516 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 6.504e-05/0.2107, allocations: 23.91 kB / 0.9516 GB, free: 1.496 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.014e-05/0.2108, allocations: 7.984 kB / 0.9516 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.2108, allocations: 8 kB / 0.9516 GB, free: 1.48 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004216/0.2112, allocations: 163.4 kB / 0.9518 GB, free: 1.32 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 5.98e-05/0.2113, allocations: 7.984 kB / 0.9518 GB, free: 1.312 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.231e-05/0.2113, allocations: 8 kB / 0.9518 GB, free: 1.305 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.2117, allocations: 115.6 kB / 0.9519 GB, free: 1.191 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2117, allocations: 4 kB / 0.9519 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2117, allocations: 0 / 0.9519 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.2117, allocations: 0 / 0.9519 GB, free: 1.188 MB / 0.9011 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.0005434/0.2122, allocations: 368.2 kB / 0.9522 GB, free: 0.793 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.2123, allocations: 8.031 kB / 0.9522 GB, free: 0.7852 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003781/0.2126, allocations: 40.8 kB / 0.9523 GB, free: 0.7461 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.2127, allocations: 104.6 kB / 0.9524 GB, free: 0.6172 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.612e-05/0.2128, allocations: 63.89 kB / 0.9524 GB, free: 0.543 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.2128, allocations: 4.125 kB / 0.9524 GB, free: 0.5391 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/0.213, allocations: 67.39 kB / 0.9525 GB, free: 472 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.213, allocations: 0 / 0.9525 GB, free: 472 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.213, allocations: 0 / 0.9525 GB, free: 472 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.213, allocations: 4 kB / 0.9525 GB, free: 468 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.258e-05/0.2131, allocations: 11.98 kB / 0.9525 GB, free: 456 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004353/0.2135, allocations: 263.8 kB / 0.9528 GB, free: 156 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 7.479e-05/0.2136, allocations: 35 kB / 0.9528 GB, free: 108 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.2136, allocations: 11.62 kB / 0.9528 GB, free: 92 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.2138, allocations: 20.05 kB / 0.9528 GB, free: 72 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.2138, allocations: 33.39 kB / 0.9529 GB, free: 28 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=2): time 3.366e-06/0.2138, allocations: 3.984 kB / 0.9529 GB, free: 24 kB / 0.9011 GB Notification: Performance of matching and sorting (n=2): time 0.0002868/0.2141, allocations: 57.78 kB / 0.9529 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000299/0.2144, allocations: 59.34 kB / 0.953 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.2145, allocations: 165.8 kB / 0.9531 GB, free: 15.71 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.2145, allocations: 25.7 kB / 0.9532 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.636e-05/0.2146, allocations: 130.8 kB / 0.9533 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.855e-06/0.2146, allocations: 7.953 kB / 0.9533 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.915e-05/0.2147, allocations: 23.38 kB / 0.9533 GB, free: 15.51 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002703/0.215, allocations: 0.4883 MB / 0.9538 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.773e-05/0.215, allocations: 4 kB / 0.9538 GB, free: 15 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.422e-05/0.215, allocations: 31.06 kB / 0.9538 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.084e-05/0.2151, allocations: 43.03 kB / 0.9539 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2151, allocations: 0 / 0.9539 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.567e-05/0.2152, allocations: 53.62 kB / 0.9539 GB, free: 14.85 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.2152, allocations: 4 kB / 0.9539 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2152, allocations: 4 kB / 0.9539 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.2152, allocations: 0 / 0.9539 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.562e-05/0.2153, allocations: 4 kB / 0.9539 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2153, allocations: 12.08 kB / 0.954 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.637e-05/0.2153, allocations: 0 / 0.954 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-06/0.2153, allocations: 0 / 0.954 GB, free: 14.82 MB / 0.9167 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 0.0001195/0.2154, allocations: 164.5 kB / 0.9541 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.2155, allocations: 3.953 kB / 0.9541 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.2155, allocations: 7.312 kB / 0.9541 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2155, allocations: 0 / 0.9541 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.2155, allocations: 0 / 0.9541 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2155, allocations: 0 / 0.9541 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.2159, allocations: 424 kB / 0.9545 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2159, allocations: 4.031 kB / 0.9545 GB, free: 14.17 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.233e-05/0.2159, allocations: 8 kB / 0.9545 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2159, allocations: 0 / 0.9545 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.2159, allocations: 0 / 0.9545 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2159, allocations: 3.938 kB / 0.9545 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2159, allocations: 3.938 kB / 0.9545 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.2161, allocations: 88.06 kB / 0.9546 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-06/0.2161, allocations: 4 kB / 0.9546 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.2161, allocations: 0 / 0.9546 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.551e-05/0.2162, allocations: 4.031 kB / 0.9546 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.2162, allocations: 7.938 kB / 0.9546 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.2162, allocations: 0 / 0.9546 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 8.165e-05/0.2163, allocations: 131.2 kB / 0.9548 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.2163, allocations: 0 / 0.9548 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001982/0.2165, allocations: 8 kB / 0.9548 GB, free: 13.89 MB / 0.9167 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.0001489/0.2166, allocations: 103.1 kB / 0.9549 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 9.823e-05/0.2167, allocations: 23.81 kB / 0.9549 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2167, allocations: 4.062 kB / 0.9549 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 2.363e-05/0.2168, allocations: 19.61 kB / 0.9549 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.217, allocations: 15.97 kB / 0.9549 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.2173, allocations: 126 kB / 0.9551 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.171e-05/0.2174, allocations: 55.36 kB / 0.9551 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 5.983e-05/0.2174, allocations: 16.52 kB / 0.9551 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.2175, allocations: 12.5 kB / 0.9551 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of SimCode: time 4.4e-07/0.2175, allocations: 0 / 0.9551 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of Templates: time 0.003781/0.2213, allocations: 0.702 MB / 0.9558 GB, free: 12.77 MB / 0.9167 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins/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: 8.287049314007163]