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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001415/0.001415, allocations: 100.1 kB / 15.88 MB, free: 12 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.001613/0.001614, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.407/1.407, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.335/2.335, allocations: 390.2 MB / 0.6649 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 60.09 kB / 0.8125 GB, free: 14.93 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5755/0.5769, allocations: 140.4 MB / 0.9496 GB, free: 9.453 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00502/0.582, allocations: 4.072 MB / 0.9535 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001681/0.5822, allocations: 150 kB / 0.9537 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.5822, allocations: 1.062 kB / 0.9537 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.267e-05/0.5823, allocations: 4 kB / 0.9537 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.144e-05/0.5824, allocations: 14.53 kB / 0.9537 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.5827, allocations: 80.33 kB / 0.9538 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.945e-05/0.5828, allocations: 53.08 kB / 0.9538 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.441e-05/0.5829, allocations: 5.266 kB / 0.9538 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.148e-05/0.5829, allocations: 20.36 kB / 0.9538 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.588e-05/0.583, allocations: 14.95 kB / 0.9539 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.583, allocations: 1.094 kB / 0.9539 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.5833, allocations: 74.19 kB / 0.9539 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.85e-05/0.5833, allocations: 10.86 kB / 0.9539 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.375e-05/0.5834, allocations: 9.125 kB / 0.954 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.5835, allocations: 33.95 kB / 0.954 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.5835, allocations: 0 / 0.954 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5835, allocations: 5.406 kB / 0.954 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.5835, allocations: 0 / 0.954 GB, free: 5.84 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.0003632/0.5839, allocations: 341.9 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.5839, allocations: 9.406 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.584, allocations: 2.156 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.356e-05/0.5841, allocations: 165.6 kB / 0.9545 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/0.5841, allocations: 31.58 kB / 0.9545 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.5841, allocations: 1.594 kB / 0.9545 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.5843, allocations: 50.36 kB / 0.9546 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.5843, allocations: 0 / 0.9546 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.5843, allocations: 1.469 kB / 0.9546 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.5843, allocations: 5.188 kB / 0.9546 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.723e-05/0.5844, allocations: 17.77 kB / 0.9546 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/0.5848, allocations: 332.6 kB / 0.9549 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.806e-05/0.5848, allocations: 24.69 kB / 0.9549 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.454e-05/0.5848, allocations: 9.922 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.817e-05/0.5849, allocations: 81.45 kB / 0.955 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/0.5849, allocations: 35.69 kB / 0.955 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.5849, allocations: 1.156 kB / 0.9551 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001327/0.5851, allocations: 39.34 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.812e-05/0.5851, allocations: 51.41 kB / 0.9551 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.719e-05/0.5852, allocations: 100.4 kB / 0.9552 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.5852, allocations: 26.86 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.963e-05/0.5852, allocations: 89.06 kB / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.839e-06/0.5852, allocations: 128 / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.5853, allocations: 22.19 kB / 0.9554 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.85e-05/0.5853, allocations: 319.7 kB / 0.9557 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.532e-05/0.5853, allocations: 5.891 kB / 0.9557 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.5854, allocations: 14.41 kB / 0.9557 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.969e-05/0.5854, allocations: 19.44 kB / 0.9557 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5854, allocations: 5.281 kB / 0.9557 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.482e-05/0.5855, allocations: 50.53 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5855, allocations: 4.969 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.5855, allocations: 0 / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.5855, allocations: 1.156 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.409e-05/0.5856, allocations: 5.188 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.5856, allocations: 5.172 kB / 0.9558 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.176e-05/0.5856, allocations: 9.188 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.5856, allocations: 1.281 kB / 0.9558 GB, free: 3.855 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 4.958e-05/0.5857, allocations: 119.3 kB / 0.9559 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.5857, allocations: 5.094 kB / 0.9559 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.592e-05/0.5858, allocations: 120.7 kB / 0.956 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/0.5858, allocations: 181.6 kB / 0.9562 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.459e-05/0.5859, allocations: 181.8 kB / 0.9564 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/0.5859, allocations: 184.3 kB / 0.9565 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.586, allocations: 407.8 kB / 0.9569 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.5861, allocations: 106.6 kB / 0.957 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.322e-05/0.5861, allocations: 101 kB / 0.9571 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.128e-05/0.5861, allocations: 189.5 kB / 0.9573 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.5861, allocations: 177.7 kB / 0.9575 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.266e-05/0.5862, allocations: 189.6 kB / 0.9577 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.157e-05/0.5862, allocations: 177.7 kB / 0.9578 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.005e-05/0.5863, allocations: 310.8 kB / 0.9581 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.957e-05/0.5863, allocations: 183.5 kB / 0.9583 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.5863, allocations: 187.1 kB / 0.9585 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.5865, allocations: 106.2 kB / 0.9586 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.644e-05/0.5865, allocations: 177.3 kB / 0.9587 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.5865, allocations: 110 kB / 0.9589 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.836e-05/0.5866, allocations: 81.53 kB / 0.9589 GB, free: 452 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5866, allocations: 0 / 0.9589 GB, free: 452 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002595/0.5868, allocations: 15.42 kB / 0.9589 GB, free: 448 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.0002293/0.5871, allocations: 204.3 kB / 0.9591 GB, free: 260 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.458e-05/0.5871, allocations: 13.61 kB / 0.9592 GB, free: 252 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5871, allocations: 0 / 0.9592 GB, free: 252 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.315e-06/0.5872, allocations: 4.938 kB / 0.9592 GB, free: 248 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.5876, allocations: 0.5225 MB / 0.9597 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000293/0.5879, allocations: 208.2 kB / 0.9599 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.5881, allocations: 0.6758 MB / 0.9605 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.179e-05/0.5881, allocations: 12.88 kB / 0.9605 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.5882, allocations: 0 / 0.9605 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of Templates: time 0.002182/0.5903, allocations: 0.744 MB / 0.9613 GB, free: 14.42 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches