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: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008168/0.008168, allocations: 109.6 kB / 15.74 MB, free: 5.984 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.001901/0.001901, allocations: 193.7 kB / 16.68 MB, free: 5.906 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.195 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.399/2.399, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 62.47 kB / 0.9504 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3134, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006417/0.3199, allocations: 4.014 MB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000237/0.3201, allocations: 163.5 kB / 1.092 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.463e-05/0.3202, allocations: 3.938 kB / 1.092 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.3204, allocations: 7.938 kB / 1.092 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.703e-05/0.3205, allocations: 11.91 kB / 1.092 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.3209, allocations: 86.06 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.321, allocations: 35.86 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.321, allocations: 0 / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.71e-05/0.3211, allocations: 15.97 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.141e-05/0.3212, allocations: 15.92 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.3212, allocations: 4 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.3214, allocations: 59.81 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.3215, allocations: 3.984 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.153e-05/0.3215, allocations: 8 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.3217, allocations: 46.7 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.3217, allocations: 4 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3217, allocations: 3.938 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.3217, allocations: 0 / 1.092 GB, free: 13.52 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.0004362/0.3222, allocations: 327.6 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.3222, allocations: 16.03 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.3223, allocations: 34.75 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.3223, allocations: 4.844 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.3224, allocations: 165.2 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.741e-05/0.3225, allocations: 26.27 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.3225, allocations: 4.125 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001511/0.3227, allocations: 45.69 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.3227, allocations: 0 / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.3227, allocations: 0 / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.3227, allocations: 4 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.382e-05/0.3228, allocations: 15.92 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004674/0.3233, allocations: 338 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.145e-05/0.3233, allocations: 18.58 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.765e-05/0.3234, allocations: 8.859 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-05/0.3235, allocations: 89.14 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.3235, allocations: 42.5 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.393e-06/0.3235, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001539/0.3237, allocations: 33.64 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.3237, allocations: 51.41 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.3238, allocations: 105.8 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.3239, allocations: 25.7 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.897e-05/0.3239, allocations: 84.05 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.061e-05/0.3239, allocations: 16.02 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.324, allocations: 13.72 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3241, allocations: 318.8 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.3241, allocations: 3.938 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.177e-05/0.3242, allocations: 21.7 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.027e-05/0.3242, allocations: 25.66 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3242, allocations: 4 kB / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.632e-05/0.3243, allocations: 45.62 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3243, allocations: 8 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3243, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3244, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.849e-05/0.3244, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3244, allocations: 7.984 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.261e-05/0.3245, allocations: 8 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.3245, allocations: 0 / 1.094 GB, free: 11.36 MB / 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.713e-05/0.3246, allocations: 121.8 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.3246, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.3247, allocations: 116.9 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.31e-05/0.3248, allocations: 180.3 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.625e-05/0.3249, allocations: 180.2 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.725e-05/0.325, allocations: 192.5 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.3252, allocations: 405.2 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/0.3252, allocations: 108.9 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.401e-05/0.3253, allocations: 101 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.51e-05/0.3254, allocations: 180.2 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.539e-05/0.3254, allocations: 180.2 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.094e-05/0.3255, allocations: 188.2 kB / 1.096 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.673e-05/0.3256, allocations: 180.2 kB / 1.096 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.3257, allocations: 307.7 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.63e-05/0.3258, allocations: 190 kB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.109e-05/0.3259, allocations: 188.3 kB / 1.096 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.326, allocations: 104.9 kB / 1.096 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.3261, allocations: 180.2 kB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/0.3261, allocations: 105 kB / 1.097 GB, free: 8 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.587e-05/0.3262, allocations: 83.28 kB / 1.097 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.533e-06/0.3262, allocations: 0 / 1.097 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002438/0.3265, allocations: 23.81 kB / 1.097 GB, free: 7.895 MB / 0.8575 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.0006323/0.3271, allocations: 0.8322 MB / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.371e-05/0.3272, allocations: 11.94 kB / 1.098 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3272, allocations: 4.125 kB / 1.098 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.824e-06/0.3272, allocations: 0 / 1.098 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.3276, allocations: 459.7 kB / 1.098 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.3289, allocations: 1.328 MB / 1.099 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3292, allocations: 0.6768 MB / 1.1 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.781e-05/0.3292, allocations: 7.984 kB / 1.1 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.3293, allocations: 7.438 kB / 1.1 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of SimCode: time 2.91e-07/0.3293, allocations: 0 / 1.1 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.349, allocations: 1.516 MB / 1.102 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.6/7.949, allocations: 10.03 kB / 1.102 GB, free: 3.008 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > 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