Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002001/0.002007, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002192/0.002192, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 390.2 MB / 0.6646 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.91 kB / 0.8125 GB, free: 14.52 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7075/0.7087, allocations: 140.4 MB / 0.9496 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004731/0.7135, allocations: 4.011 MB / 0.9535 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001554/0.7137, allocations: 158.3 kB / 0.9536 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.475e-05/0.7137, allocations: 0 / 0.9536 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.7139, allocations: 3.938 kB / 0.9536 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.532e-05/0.714, allocations: 10.7 kB / 0.9536 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.7143, allocations: 82.38 kB / 0.9537 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.7144, allocations: 38.28 kB / 0.9538 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.399e-05/0.7144, allocations: 5.031 kB / 0.9538 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.755e-05/0.7145, allocations: 18.17 kB / 0.9538 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.064e-05/0.7146, allocations: 9.172 kB / 0.9538 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.7146, allocations: 1.406 kB / 0.9538 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.7148, allocations: 57.78 kB / 0.9539 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.094e-05/0.7148, allocations: 10.91 kB / 0.9539 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.7149, allocations: 12.31 kB / 0.9539 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.715, allocations: 42.16 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.715, allocations: 0 / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.715, allocations: 5.062 kB / 0.9539 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.715, allocations: 0 / 0.9539 GB, free: 5.715 MB / 0.7169 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.0003235/0.7154, allocations: 348.7 kB / 0.9543 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.7154, allocations: 8.812 kB / 0.9543 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.7154, allocations: 2.125 kB / 0.9543 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.471e-05/0.7155, allocations: 165.6 kB / 0.9544 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.561e-05/0.7156, allocations: 31.52 kB / 0.9544 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.7156, allocations: 1.656 kB / 0.9545 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.7157, allocations: 42.75 kB / 0.9545 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.7157, allocations: 1.281 kB / 0.9545 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.7157, allocations: 0 / 0.9545 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.7158, allocations: 5.438 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.224e-05/0.7158, allocations: 12.7 kB / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003605/0.7162, allocations: 340.8 kB / 0.9548 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.236e-05/0.7162, allocations: 21.36 kB / 0.9549 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.413e-05/0.7162, allocations: 6.328 kB / 0.9549 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.524e-05/0.7163, allocations: 81.45 kB / 0.9549 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.7163, allocations: 44.05 kB / 0.955 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.7164, allocations: 0 / 0.955 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.7165, allocations: 36.61 kB / 0.955 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.102e-05/0.7165, allocations: 55.53 kB / 0.9551 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.54e-05/0.7166, allocations: 105.1 kB / 0.9552 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.7166, allocations: 25.7 kB / 0.9552 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.514e-05/0.7167, allocations: 85.55 kB / 0.9553 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.109e-06/0.7167, allocations: 0 / 0.9553 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.7167, allocations: 18.06 kB / 0.9553 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.7168, allocations: 318.8 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.74e-05/0.7168, allocations: 3.281 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.222e-05/0.7168, allocations: 21.91 kB / 0.9556 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.48e-05/0.7169, allocations: 19.06 kB / 0.9556 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.7169, allocations: 4.859 kB / 0.9556 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.101e-05/0.7169, allocations: 42.11 kB / 0.9557 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.717, allocations: 6.562 kB / 0.9557 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.717, allocations: 5 kB / 0.9557 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.717, allocations: 9.125 kB / 0.9557 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.973e-05/0.7171, allocations: 11.83 kB / 0.9557 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.7171, allocations: 1.125 kB / 0.9557 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.7171, allocations: 9.062 kB / 0.9557 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.7171, allocations: 2.156 kB / 0.9557 GB, free: 3.723 MB / 0.7169 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 6.364e-05/0.7172, allocations: 116 kB / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.7172, allocations: 0.9062 kB / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.7173, allocations: 124.3 kB / 0.956 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/0.7174, allocations: 185.3 kB / 0.9561 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/0.7174, allocations: 181.2 kB / 0.9563 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/0.7174, allocations: 181.1 kB / 0.9565 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.7176, allocations: 404.1 kB / 0.9569 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.119e-05/0.7176, allocations: 106.3 kB / 0.957 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.707e-05/0.7176, allocations: 114.2 kB / 0.9571 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.649e-05/0.7176, allocations: 177.6 kB / 0.9572 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.7177, allocations: 184.2 kB / 0.9574 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.718e-05/0.7177, allocations: 181.8 kB / 0.9576 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.007e-05/0.7177, allocations: 177.8 kB / 0.9578 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.989e-05/0.7178, allocations: 315.9 kB / 0.9581 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.7179, allocations: 183.6 kB / 0.9582 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.027e-05/0.7179, allocations: 178.5 kB / 0.9584 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.718, allocations: 105.8 kB / 0.9585 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.7181, allocations: 189.4 kB / 0.9587 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.7181, allocations: 102 kB / 0.9588 GB, free: 400 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.291e-05/0.7181, allocations: 88.23 kB / 0.9589 GB, free: 316 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7181, allocations: 0 / 0.9589 GB, free: 316 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002561/0.7184, allocations: 20.06 kB / 0.9589 GB, free: 308 kB / 0.7169 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.0002627/0.7187, allocations: 195.6 kB / 0.9591 GB, free: 128 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.952e-05/0.7188, allocations: 14.56 kB / 0.9591 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.7188, allocations: 1.062 kB / 0.9591 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.272e-06/0.7188, allocations: 0 / 0.9591 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.7192, allocations: 459.2 kB / 0.9595 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002768/0.7195, allocations: 189.7 kB / 0.9597 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.7198, allocations: 0.6789 MB / 0.9604 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.396e-05/0.7198, allocations: 5.031 kB / 0.9604 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.892e-05/0.7198, allocations: 9.562 kB / 0.9604 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.7198, allocations: 0 / 0.9604 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of Templates: time 0.002755/0.7226, allocations: 0.6367 MB / 0.961 GB, free: 14.43 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches