Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_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.0008912/0.0008912, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.0009313/0.0009313, allocations: 172.9 kB / 16.27 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.362/1.362, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.659/2.659, allocations: 462.7 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003686/0.0003686, allocations: 16.8 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3367, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004683/0.3414, allocations: 3.69 MB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002073/0.3416, allocations: 159.5 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.126e-05/0.3417, allocations: 0 / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.3418, allocations: 3.938 kB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.707e-05/0.3419, allocations: 15.92 kB / 1.063 GB, free: 1 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.3422, allocations: 74.52 kB / 1.063 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.3423, allocations: 59.86 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.3424, allocations: 7.938 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.969e-05/0.3424, allocations: 12 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.55e-05/0.3425, allocations: 23.91 kB / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.3425, allocations: 0 / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002431/0.3428, allocations: 67.8 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.757e-05/0.3429, allocations: 15.97 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.878e-05/0.3429, allocations: 29.7 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.343, allocations: 52.16 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3431, allocations: 0 / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.605e-06/0.3431, allocations: 0 / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.3431, allocations: 0 / 1.063 GB, free: 0.6602 MB / 0.8106 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.0003588/0.3434, allocations: 327.6 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3435, allocations: 15.97 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.866e-05/0.3435, allocations: 38.67 kB / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.3436, allocations: 0.9375 kB / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.3437, allocations: 168.3 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.703e-05/0.3438, allocations: 26.27 kB / 1.063 GB, free: 16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.3438, allocations: 8.062 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.344, allocations: 49.69 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.344, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.344, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.344, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.997e-05/0.3441, allocations: 15.92 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004502/0.3445, allocations: 334 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.909e-05/0.3446, allocations: 26.56 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.3446, allocations: 4.859 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.19e-05/0.3447, allocations: 89.16 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.3447, allocations: 34.56 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.3447, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.3449, allocations: 33.64 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/0.3449, allocations: 55.34 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.939e-05/0.345, allocations: 105.8 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.345, allocations: 25.83 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.585e-05/0.3451, allocations: 95.98 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.549e-06/0.3451, allocations: 0 / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.47e-05/0.3451, allocations: 17.7 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.796e-05/0.3452, allocations: 314.8 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.365e-05/0.3452, allocations: 4 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.405e-05/0.3453, allocations: 17.72 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.458e-05/0.3453, allocations: 25.64 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3453, allocations: 0 / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.635e-05/0.3454, allocations: 49.61 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.3454, allocations: 7.984 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3454, allocations: 0 / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.3454, allocations: 0 / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.641e-05/0.3455, allocations: 7.938 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3455, allocations: 4 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.3455, allocations: 0 / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.3456, allocations: 4.062 kB / 1.065 GB, free: 14.51 MB / 0.8262 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 7.603e-05/0.3456, allocations: 117.8 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.3457, allocations: 0 / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.3458, allocations: 117 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.15e-05/0.3458, allocations: 184.2 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.428e-05/0.3459, allocations: 184.3 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.708e-05/0.346, allocations: 184.2 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.3462, allocations: 405.2 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.021e-05/0.3462, allocations: 105 kB / 1.066 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.459e-05/0.3463, allocations: 108.9 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.816e-05/0.3463, allocations: 176.3 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.49e-05/0.3464, allocations: 188.1 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.862e-05/0.3465, allocations: 180.3 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-05/0.3465, allocations: 180.2 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.3467, allocations: 311.7 kB / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.734e-05/0.3468, allocations: 193.9 kB / 1.067 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.3469, allocations: 184.3 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.347, allocations: 105 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.545e-05/0.3471, allocations: 184.1 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.3471, allocations: 105 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.228e-05/0.3472, allocations: 87.28 kB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3472, allocations: 4 kB / 1.068 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002366/0.3474, allocations: 15.94 kB / 1.068 GB, free: 11.04 MB / 0.8262 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.0004986/0.348, allocations: 0.8321 MB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.018e-05/0.348, allocations: 11.98 kB / 1.069 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.348, allocations: 0 / 1.069 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.396e-06/0.3481, allocations: 8.266 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.3485, allocations: 0.5224 MB / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009713/0.3495, allocations: 1.319 MB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.3497, allocations: 0.6692 MB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.434e-05/0.3498, allocations: 8 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.3498, allocations: 11.42 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.3498, allocations: 0 / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.164/2.514, allocations: 1.309 MB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/2.514, allocations: 224.2 kB / 1.073 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.644/5.158, allocations: 0 / 1.073 GB, free: 6.082 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches