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.008976/0.008976, allocations: 102 kB / 15.73 MB, free: 6.039 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.001862/0.001862, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.261/2.261, allocations: 390.2 MB / 0.6648 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 59.91 kB / 0.9508 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9149/0.9161, allocations: 140.4 MB / 1.088 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006111/0.9223, allocations: 4.013 MB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002847/0.9226, allocations: 153.9 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.305e-05/0.9227, allocations: 4 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.9228, allocations: 9.938 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.923, allocations: 9.516 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.9235, allocations: 74.47 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.9237, allocations: 38.16 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.645e-05/0.9237, allocations: 6.859 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.768e-05/0.9238, allocations: 15.23 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.9239, allocations: 20.22 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.924, allocations: 1.188 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.9243, allocations: 57.08 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.519e-05/0.9243, allocations: 12.75 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.248e-05/0.9244, allocations: 10.11 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.9246, allocations: 41.5 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.9246, allocations: 0.9062 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/0.9246, allocations: 0 / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.9246, allocations: 0 / 1.092 GB, free: 2.355 MB / 0.8575 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.0005574/0.9252, allocations: 337 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.694e-05/0.9253, allocations: 9.906 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.902e-05/0.9254, allocations: 3.297 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.9255, allocations: 165.8 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.445e-05/0.9256, allocations: 28.5 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.9256, allocations: 5.062 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.9258, allocations: 47.7 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.9259, allocations: 0.8438 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.9259, allocations: 4 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.9259, allocations: 1.984 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.991e-05/0.926, allocations: 16.72 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005686/0.9266, allocations: 332.5 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.767e-05/0.9266, allocations: 20.64 kB / 1.093 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.873e-05/0.9267, allocations: 10.81 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.9268, allocations: 92.89 kB / 1.093 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.9268, allocations: 31.31 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.9268, allocations: 0 / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0002053/0.927, allocations: 38.38 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.9271, allocations: 51.41 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.673e-05/0.9272, allocations: 102.6 kB / 1.093 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.9272, allocations: 26.58 kB / 1.094 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.381e-05/0.9272, allocations: 87.8 kB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.438e-06/0.9272, allocations: 13.52 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.9273, allocations: 14.98 kB / 1.094 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.07e-05/0.9274, allocations: 317.2 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.06e-05/0.9274, allocations: 6.609 kB / 1.094 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.571e-05/0.9274, allocations: 14.81 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.648e-05/0.9275, allocations: 29.22 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.9275, allocations: 0.9375 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.857e-05/0.9276, allocations: 45.38 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.9276, allocations: 6.203 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.9276, allocations: 4.812 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.9277, allocations: 1 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.502e-05/0.9277, allocations: 10.36 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.9278, allocations: 0 / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.177e-05/0.9278, allocations: 5.219 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.9278, allocations: 6.906 kB / 1.094 GB, free: 424 kB / 0.8575 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 8.189e-05/0.9279, allocations: 112 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.9279, allocations: 2.219 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.928, allocations: 122.3 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.357e-05/0.9281, allocations: 177.8 kB / 1.094 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.077e-05/0.9282, allocations: 182.6 kB / 1.095 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.569e-05/0.9283, allocations: 185 kB / 1.095 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.9286, allocations: 408.3 kB / 1.095 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.253e-05/0.9286, allocations: 106.6 kB / 1.095 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.351e-05/0.9287, allocations: 106.7 kB / 1.095 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.704e-05/0.9288, allocations: 178 kB / 1.096 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-05/0.9288, allocations: 185.8 kB / 1.096 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.736e-05/0.9289, allocations: 181.8 kB / 1.096 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-05/0.929, allocations: 185.9 kB / 1.096 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/0.9292, allocations: 306.1 kB / 1.096 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.505e-05/0.9293, allocations: 185 kB / 1.097 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.715e-05/0.9294, allocations: 185.8 kB / 1.097 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.9295, allocations: 110 kB / 1.097 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.348e-05/0.9296, allocations: 178 kB / 1.097 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.9297, allocations: 102.4 kB / 1.097 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.219e-05/0.9297, allocations: 90.08 kB / 1.097 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9297, allocations: 0.9688 kB / 1.097 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002672/0.93, allocations: 20.48 kB / 1.097 GB, free: 13.02 MB / 0.8731 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.0002573/0.9303, allocations: 199.6 kB / 1.097 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.936e-05/0.9304, allocations: 7.406 kB / 1.097 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9304, allocations: 0 / 1.097 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.356e-06/0.9304, allocations: 1 kB / 1.097 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.9308, allocations: 464.6 kB / 1.098 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003643/0.9312, allocations: 188.2 kB / 1.098 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.9316, allocations: 0.6742 MB / 1.099 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.724e-05/0.9317, allocations: 13.91 kB / 1.099 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.9317, allocations: 9 kB / 1.099 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.9317, allocations: 0.75 kB / 1.099 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of Templates: time 0.003777/0.9355, allocations: 0.6398 MB / 1.099 GB, free: 11.4 MB / 0.8731 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