Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.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.0014/0.0014, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001472/0.001472, allocations: 215.2 kB / 23.04 MB, free: 5.078 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.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.38/3.38, allocations: 0.49 GB / 0.7959 GB, free: 33.37 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.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_12_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_12_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",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.002006/0.002006, allocations: 60.69 kB / 1.155 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3933, allocations: 176.1 MB / 1.327 GB, free: 1.988 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1805/0.5738, allocations: 138.7 MB / 1.462 GB, free: 6.777 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.0002043/0.574, allocations: 51.73 kB / 1.462 GB, free: 6.73 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.5741, allocations: 0 / 1.462 GB, free: 6.73 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.5742, allocations: 7.984 kB / 1.462 GB, free: 6.723 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 9.111e-05/0.5743, allocations: 15.92 kB / 1.462 GB, free: 6.707 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009729/0.5752, allocations: 242.3 kB / 1.462 GB, free: 6.473 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 9.704e-05/0.5753, allocations: 39.83 kB / 1.462 GB, free: 6.434 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.5754, allocations: 8 kB / 1.462 GB, free: 6.426 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 3.709e-05/0.5754, allocations: 11.98 kB / 1.462 GB, free: 6.414 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 8.641e-05/0.5755, allocations: 19.92 kB / 1.462 GB, free: 6.395 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.5755, allocations: 0 / 1.462 GB, free: 6.395 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005453/0.5761, allocations: 255.4 kB / 1.463 GB, free: 6.145 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 5.747e-05/0.5761, allocations: 15.97 kB / 1.463 GB, free: 6.129 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 2.674e-05/0.5761, allocations: 7.938 kB / 1.463 GB, free: 6.121 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.5765, allocations: 183.8 kB / 1.463 GB, free: 5.941 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.5765, allocations: 3.984 kB / 1.463 GB, free: 5.938 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.954e-06/0.5765, allocations: 0 / 1.463 GB, free: 5.938 MB / 1.154 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.5765, allocations: 4 kB / 1.463 GB, free: 5.934 MB / 1.154 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.0004456/0.577, allocations: 290 kB / 1.463 GB, free: 5.621 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.577, allocations: 8.031 kB / 1.463 GB, free: 5.613 MB / 1.154 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.888e-05/0.577, allocations: 192 / 1.463 GB, free: 5.613 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.383e-05/0.577, allocations: 38.75 kB / 1.463 GB, free: 5.566 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.5771, allocations: 0.9375 kB / 1.463 GB, free: 5.566 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.5772, allocations: 110.5 kB / 1.463 GB, free: 5.434 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-05/0.5773, allocations: 59.47 kB / 1.463 GB, free: 5.363 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-06/0.5773, allocations: 4 kB / 1.463 GB, free: 5.359 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001358/0.5774, allocations: 45.69 kB / 1.463 GB, free: 5.309 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.5774, allocations: 0 / 1.463 GB, free: 5.309 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.5774, allocations: 0 / 1.463 GB, free: 5.309 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.5775, allocations: 0 / 1.463 GB, free: 5.309 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.457e-05/0.5775, allocations: 11.98 kB / 1.463 GB, free: 5.297 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007356/0.5782, allocations: 283.9 kB / 1.464 GB, free: 4.977 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 4.607e-05/0.5783, allocations: 22.52 kB / 1.464 GB, free: 4.945 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.446e-05/0.5783, allocations: 4.859 kB / 1.464 GB, free: 4.938 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 6.925e-05/0.5784, allocations: 24.05 kB / 1.464 GB, free: 4.914 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.5784, allocations: 34.56 kB / 1.464 GB, free: 4.871 MB / 1.154 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.5784, allocations: 0 / 1.464 GB, free: 4.871 MB / 1.154 GB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.5786, allocations: 37.69 kB / 1.464 GB, free: 4.828 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.5786, allocations: 59.47 kB / 1.464 GB, free: 4.758 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.5787, allocations: 109.7 kB / 1.464 GB, free: 4.641 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.5788, allocations: 29.7 kB / 1.464 GB, free: 4.605 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 7.073e-05/0.5788, allocations: 84.09 kB / 1.464 GB, free: 4.52 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 9.899e-06/0.5788, allocations: 7.875 kB / 1.464 GB, free: 4.512 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.5789, allocations: 17.72 kB / 1.464 GB, free: 4.488 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.5791, allocations: 314.8 kB / 1.464 GB, free: 4.172 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.755e-05/0.5791, allocations: 4 kB / 1.464 GB, free: 4.168 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.37e-05/0.5791, allocations: 21.72 kB / 1.464 GB, free: 4.141 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.844e-05/0.5791, allocations: 17.72 kB / 1.464 GB, free: 4.117 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.5791, allocations: 0 / 1.464 GB, free: 4.117 MB / 1.154 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.689e-05/0.5792, allocations: 53.56 kB / 1.464 GB, free: 4.059 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.5793, allocations: 4 kB / 1.465 GB, free: 4.055 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.5793, allocations: 0 / 1.465 GB, free: 4.055 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.5793, allocations: 8.062 kB / 1.465 GB, free: 4.047 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.993e-05/0.5793, allocations: 8.266 kB / 1.465 GB, free: 4.039 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.5793, allocations: 0 / 1.465 GB, free: 4.039 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.296e-05/0.5794, allocations: 7.891 kB / 1.465 GB, free: 4.031 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.5794, allocations: 4 kB / 1.465 GB, free: 4.027 MB / 1.154 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 9.39e-05/0.5795, allocations: 114.3 kB / 1.465 GB, free: 3.906 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.5795, allocations: 4 kB / 1.465 GB, free: 3.902 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.5796, allocations: 121 kB / 1.465 GB, free: 3.773 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.794e-05/0.5797, allocations: 180.3 kB / 1.465 GB, free: 3.59 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-05/0.5798, allocations: 184.2 kB / 1.465 GB, free: 3.402 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001069/0.5799, allocations: 180.2 kB / 1.465 GB, free: 3.219 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.5802, allocations: 380.2 kB / 1.466 GB, free: 2.797 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.456e-05/0.5802, allocations: 101 kB / 1.466 GB, free: 2.691 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.5803, allocations: 120.9 kB / 1.466 GB, free: 2.566 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.69e-05/0.5804, allocations: 180.3 kB / 1.466 GB, free: 2.383 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.414e-05/0.5805, allocations: 176.3 kB / 1.466 GB, free: 2.203 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.733e-05/0.5805, allocations: 180.4 kB / 1.466 GB, free: 2.02 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.474e-05/0.5806, allocations: 176.3 kB / 1.467 GB, free: 1.84 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.5808, allocations: 323.7 kB / 1.467 GB, free: 1.5 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.5809, allocations: 101 kB / 1.467 GB, free: 1.395 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.581, allocations: 180.2 kB / 1.467 GB, free: 1.211 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.5811, allocations: 113 kB / 1.467 GB, free: 1.094 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.707e-05/0.5812, allocations: 188.1 kB / 1.467 GB, free: 0.9023 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.908e-05/0.5813, allocations: 105 kB / 1.467 GB, free: 0.793 MB / 1.154 GB Notification: Performance of sorting global known variables: time 5.683e-05/0.5813, allocations: 87.27 kB / 1.468 GB, free: 0.707 MB / 1.154 GB Notification: Performance of sort global known variables: time 6e-08/0.5813, allocations: 0 / 1.468 GB, free: 0.707 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0003526/0.5817, allocations: 51.75 kB / 1.468 GB, free: 0.6562 MB / 1.154 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.0007609/0.5825, allocations: 0.8942 MB / 1.468 GB, free: 15.73 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 8.171e-05/0.5825, allocations: 11.98 kB / 1.469 GB, free: 15.72 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.5825, allocations: 4 kB / 1.469 GB, free: 15.71 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 1.703e-06/0.5825, allocations: 8.062 kB / 1.469 GB, free: 15.71 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004626/0.583, allocations: 461.3 kB / 1.469 GB, free: 15.25 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.5842, allocations: 1.34 MB / 1.47 GB, free: 13.83 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.5846, allocations: 0.6768 MB / 1.471 GB, free: 13.12 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.5846, allocations: 7.984 kB / 1.471 GB, free: 13.12 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.5846, allocations: 11.44 kB / 1.471 GB, free: 13.11 MB / 1.17 GB Notification: Performance of SimCode: time 3.1e-07/0.5846, allocations: 0 / 1.471 GB, free: 13.11 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.6073, allocations: 2.345 MB / 1.473 GB, free: 10.91 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.13, allocations: 6.062 kB / 1.473 GB, free: 10.9 MB / 1.17 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_12_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.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: 19.139602741983254]