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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009175/0.009175, allocations: 102.6 kB / 15.73 MB, free: 6.066 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.001963/0.001964, allocations: 193.7 kB / 16.67 MB, free: 5.977 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.629/2.629, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 1.054 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8828/0.8841, allocations: 157.4 MB / 1.207 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00644/0.8906, allocations: 4.025 MB / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002183/0.8908, allocations: 147.5 kB / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.8909, allocations: 0 / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.891, allocations: 3.938 kB / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.197e-05/0.8911, allocations: 15.91 kB / 1.211 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.8915, allocations: 83.75 kB / 1.211 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.725e-05/0.8916, allocations: 31.84 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.699e-05/0.8917, allocations: 4 kB / 1.211 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.356e-05/0.8917, allocations: 19.92 kB / 1.211 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.712e-05/0.8918, allocations: 11.97 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.8918, allocations: 4 kB / 1.211 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.8921, allocations: 51.83 kB / 1.212 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.8921, allocations: 11.92 kB / 1.212 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.953e-05/0.8922, allocations: 11.94 kB / 1.212 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.8923, allocations: 50.14 kB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.8923, allocations: 0 / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.235e-06/0.8923, allocations: 0 / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.8924, allocations: 0 / 1.212 GB, free: 9.094 MB / 0.9356 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.0004176/0.8928, allocations: 335.4 kB / 1.212 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.8928, allocations: 12.02 kB / 1.212 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.8929, allocations: 34.75 kB / 1.212 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.62e-05/0.8929, allocations: 4.938 kB / 1.212 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.8932, allocations: 164.4 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.629e-05/0.8932, allocations: 38.2 kB / 1.212 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.8933, allocations: 4.125 kB / 1.212 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.8934, allocations: 41.67 kB / 1.212 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.8934, allocations: 0 / 1.212 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.8934, allocations: 4 kB / 1.212 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.8935, allocations: 7.938 kB / 1.212 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.038e-05/0.8935, allocations: 11.98 kB / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004758/0.894, allocations: 334 kB / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.8941, allocations: 18.58 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.856e-05/0.8941, allocations: 12.92 kB / 1.213 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.6e-05/0.8942, allocations: 85.09 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.8943, allocations: 38.5 kB / 1.213 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.8943, allocations: 0 / 1.213 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001571/0.8944, allocations: 33.7 kB / 1.213 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.8945, allocations: 55.53 kB / 1.213 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.412e-05/0.8946, allocations: 101.8 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.8946, allocations: 25.7 kB / 1.213 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.729e-05/0.8947, allocations: 88.05 kB / 1.213 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.8947, allocations: 7.891 kB / 1.213 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.8947, allocations: 17.72 kB / 1.213 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.8949, allocations: 314.8 kB / 1.213 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.695e-05/0.8949, allocations: 4 kB / 1.213 GB, free: 7.07 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.145e-05/0.8949, allocations: 25.7 kB / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.498e-05/0.895, allocations: 17.66 kB / 1.213 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.895, allocations: 0 / 1.213 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.324e-05/0.8951, allocations: 57.56 kB / 1.213 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.8951, allocations: 5.562 kB / 1.213 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.8951, allocations: 0 / 1.213 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.8951, allocations: 4.062 kB / 1.213 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.181e-05/0.8952, allocations: 8 kB / 1.213 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.8952, allocations: 0 / 1.213 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.142e-05/0.8952, allocations: 3.938 kB / 1.213 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.8953, allocations: 4 kB / 1.213 GB, free: 6.93 MB / 0.9356 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.689e-05/0.8953, allocations: 117.8 kB / 1.214 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.8954, allocations: 0 / 1.214 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.8955, allocations: 124.8 kB / 1.214 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.884e-05/0.8956, allocations: 176.3 kB / 1.214 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.405e-05/0.8957, allocations: 188.2 kB / 1.214 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001325/0.8958, allocations: 180.2 kB / 1.214 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.8961, allocations: 409.2 kB / 1.215 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.103e-05/0.8962, allocations: 108.9 kB / 1.215 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.8963, allocations: 109 kB / 1.215 GB, free: 5.438 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001413/0.8964, allocations: 180.2 kB / 1.215 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.436e-05/0.8965, allocations: 184.2 kB / 1.215 GB, free: 5.066 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001357/0.8966, allocations: 184.2 kB / 1.215 GB, free: 4.879 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.967e-05/0.8967, allocations: 180.2 kB / 1.215 GB, free: 4.695 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.8969, allocations: 312 kB / 1.216 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.897, allocations: 186.1 kB / 1.216 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.8972, allocations: 180.2 kB / 1.216 GB, free: 3.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.8973, allocations: 112.9 kB / 1.216 GB, free: 3.859 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.793e-05/0.8974, allocations: 180.2 kB / 1.216 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.836e-05/0.8975, allocations: 108.9 kB / 1.217 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.088e-05/0.8975, allocations: 79.28 kB / 1.217 GB, free: 3.484 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8975, allocations: 4 kB / 1.217 GB, free: 3.48 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003139/0.8978, allocations: 19.94 kB / 1.217 GB, free: 3.461 MB / 0.9356 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.0005886/0.8984, allocations: 0.8244 MB / 1.217 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 8.191e-05/0.8985, allocations: 11.94 kB / 1.217 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.8985, allocations: 0 / 1.217 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.216e-06/0.8985, allocations: 4 kB / 1.217 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.8991, allocations: 463.8 kB / 1.218 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.9002, allocations: 1.325 MB / 1.219 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.9004, allocations: 0.6729 MB / 1.22 GB, free: 24 kB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.455e-05/0.9005, allocations: 11.92 kB / 1.22 GB, free: 12 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.349e-05/0.9005, allocations: 15.44 kB / 1.22 GB, free: 0 / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.9005, allocations: 0 / 1.22 GB, free: 0 / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.919, allocations: 1.521 MB / 1.221 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.608/8.527, allocations: 7.969 kB / 1.221 GB, free: 14.59 MB / 0.9512 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