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.001538/0.001537, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00233/0.00233, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.469/1.469, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.368/2.368, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 71.88 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6916/0.6935, allocations: 140.3 MB / 0.9489 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004059/0.6976, allocations: 4.072 MB / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001453/0.6978, allocations: 162 kB / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.393e-05/0.6978, allocations: 1.156 kB / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.93e-05/0.6979, allocations: 0 / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.131e-05/0.698, allocations: 19.44 kB / 0.953 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.6982, allocations: 79.36 kB / 0.9531 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.237e-05/0.6983, allocations: 52.02 kB / 0.9532 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.427e-05/0.6984, allocations: 6.172 kB / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.196e-05/0.6984, allocations: 20.7 kB / 0.9532 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.6985, allocations: 15.48 kB / 0.9532 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.6985, allocations: 0.8125 kB / 0.9532 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.6987, allocations: 73.47 kB / 0.9533 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.925e-05/0.6987, allocations: 11.61 kB / 0.9533 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.518e-05/0.6987, allocations: 3.969 kB / 0.9533 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.6989, allocations: 48.73 kB / 0.9533 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6989, allocations: 0 / 0.9533 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.01e-07/0.6989, allocations: 1.094 kB / 0.9533 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.6989, allocations: 0 / 0.9533 GB, free: 5.566 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.0002708/0.6992, allocations: 345.9 kB / 0.9537 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.6992, allocations: 9.188 kB / 0.9537 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.374e-05/0.6992, allocations: 2.125 kB / 0.9537 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.321e-05/0.6993, allocations: 165.3 kB / 0.9538 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.509e-05/0.6994, allocations: 27.95 kB / 0.9539 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.6994, allocations: 1.5 kB / 0.9539 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.6995, allocations: 47.88 kB / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.6995, allocations: 0 / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.6995, allocations: 4 kB / 0.9539 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.6995, allocations: 5.672 kB / 0.9539 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.841e-05/0.6996, allocations: 9.219 kB / 0.9539 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003096/0.6999, allocations: 344.2 kB / 0.9543 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.718e-05/0.6999, allocations: 21.55 kB / 0.9543 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.6999, allocations: 6.391 kB / 0.9543 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.071e-05/0.7, allocations: 90 kB / 0.9544 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.7, allocations: 32.09 kB / 0.9544 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.7, allocations: 0 / 0.9544 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001158/0.7002, allocations: 34.77 kB / 0.9544 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.986e-05/0.7002, allocations: 56.8 kB / 0.9545 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.929e-05/0.7002, allocations: 99.52 kB / 0.9546 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.897e-06/0.7003, allocations: 25.7 kB / 0.9546 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.372e-05/0.7003, allocations: 97.42 kB / 0.9547 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.999e-06/0.7003, allocations: 5.484 kB / 0.9547 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.7003, allocations: 14.19 kB / 0.9547 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.037e-05/0.7004, allocations: 314.8 kB / 0.955 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.492e-05/0.7004, allocations: 10.91 kB / 0.955 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.921e-05/0.7004, allocations: 16.77 kB / 0.955 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.856e-05/0.7004, allocations: 28.19 kB / 0.9551 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.7005, allocations: 0 / 0.9551 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.213e-05/0.7005, allocations: 47.28 kB / 0.9551 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.7005, allocations: 5.438 kB / 0.9551 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.7005, allocations: 0 / 0.9551 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.7006, allocations: 1.5 kB / 0.9551 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.866e-05/0.7006, allocations: 4.938 kB / 0.9551 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.7006, allocations: 3.938 kB / 0.9551 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.7006, allocations: 8.969 kB / 0.9551 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.7007, allocations: 7.188 kB / 0.9551 GB, free: 3.57 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.141e-05/0.7007, allocations: 115 kB / 0.9553 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.7007, allocations: 1.375 kB / 0.9553 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.182e-05/0.7008, allocations: 115.8 kB / 0.9554 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.7008, allocations: 185.4 kB / 0.9555 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.04e-05/0.7009, allocations: 177.8 kB / 0.9557 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.7009, allocations: 181.8 kB / 0.9559 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.701, allocations: 411.3 kB / 0.9563 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.701, allocations: 110.5 kB / 0.9564 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.08e-05/0.701, allocations: 104.9 kB / 0.9565 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/0.7011, allocations: 177.6 kB / 0.9567 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.7011, allocations: 189.9 kB / 0.9568 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.97e-05/0.7011, allocations: 184.2 kB / 0.957 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.917e-05/0.7011, allocations: 178 kB / 0.9572 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.494e-05/0.7012, allocations: 303.4 kB / 0.9575 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.566e-05/0.7012, allocations: 191.2 kB / 0.9577 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.7013, allocations: 182.5 kB / 0.9578 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.7014, allocations: 104.1 kB / 0.9579 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.372e-05/0.7014, allocations: 184.2 kB / 0.9581 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.7015, allocations: 102.3 kB / 0.9582 GB, free: 252 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.828e-05/0.7015, allocations: 84.88 kB / 0.9583 GB, free: 172 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7015, allocations: 3.938 kB / 0.9583 GB, free: 168 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002329/0.7017, allocations: 15.69 kB / 0.9583 GB, free: 164 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.0002046/0.7019, allocations: 199.8 kB / 0.9585 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.253e-05/0.702, allocations: 14.45 kB / 0.9585 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.702, allocations: 0 / 0.9585 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.963e-06/0.702, allocations: 1.062 kB / 0.9585 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.7024, allocations: 0.5265 MB / 0.959 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/0.7027, allocations: 185.4 kB / 0.9592 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.7029, allocations: 0.6756 MB / 0.9599 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.195e-05/0.703, allocations: 13.52 kB / 0.9599 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.456e-05/0.703, allocations: 8.5 kB / 0.9599 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of SimCode: time 3.1e-07/0.703, allocations: 0 / 0.9599 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of Templates: time 0.002456/0.7054, allocations: 0.6147 MB / 0.9605 GB, free: 14.21 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