Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamProperties.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.SteamProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamProperties",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.007958/0.007958, allocations: 100.9 kB / 15.73 MB, free: 6.477 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.001951/0.001951, allocations: 191.5 kB / 16.67 MB, free: 6.391 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.414/2.414, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 61.67 kB / 0.9504 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2991, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1519/0.4511, allocations: 136.1 MB / 1.22 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.03229/0.4834, allocations: 22.34 MB / 1.242 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.4836, allocations: 3.938 kB / 1.242 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.4839, allocations: 39.75 kB / 1.242 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003617/0.4843, allocations: 103.3 kB / 1.242 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01799/0.5023, allocations: 6.675 MB / 1.249 GB, free: 12.09 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.5028, allocations: 243.9 kB / 1.249 GB, free: 11.86 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.062e-05/0.5029, allocations: 17.56 kB / 1.249 GB, free: 11.84 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003631/0.5032, allocations: 147.4 kB / 1.249 GB, free: 11.7 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.5034, allocations: 87.66 kB / 1.249 GB, free: 11.61 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.5035, allocations: 11.94 kB / 1.249 GB, free: 11.6 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0238/0.5273, allocations: 10.96 MB / 1.26 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.5274, allocations: 35.89 kB / 1.26 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.5276, allocations: 91.64 kB / 1.26 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.7001/1.228, allocations: 6.141 MB / 1.266 GB, free: 12.87 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/1.228, allocations: 1.781 kB / 1.266 GB, free: 12.87 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.685e-06/1.228, allocations: 3.75 kB / 1.266 GB, free: 12.87 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.667e-06/1.228, allocations: 1.094 kB / 1.266 GB, free: 12.87 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.008196/1.236, allocations: 1.188 MB / 1.267 GB, free: 12.14 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/1.236, allocations: 9.75 kB / 1.267 GB, free: 12.14 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/1.236, allocations: 51.84 kB / 1.267 GB, free: 12.1 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/1.237, allocations: 86.52 kB / 1.268 GB, free: 12.09 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/1.238, allocations: 221.4 kB / 1.268 GB, free: 11.89 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/1.238, allocations: 12.47 kB / 1.268 GB, free: 11.89 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/1.238, allocations: 16.88 kB / 1.268 GB, free: 11.89 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/1.239, allocations: 458.1 kB / 1.268 GB, free: 11.82 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/1.239, allocations: 0.7188 kB / 1.268 GB, free: 11.82 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/1.239, allocations: 8.062 kB / 1.268 GB, free: 11.82 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/1.239, allocations: 4.031 kB / 1.268 GB, free: 11.82 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/1.24, allocations: 0.5955 MB / 1.269 GB, free: 11.82 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/1.242, allocations: 0.8811 MB / 1.27 GB, free: 11.16 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009196/1.243, allocations: 258.1 kB / 1.27 GB, free: 11.14 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/1.243, allocations: 74.17 kB / 1.27 GB, free: 11.13 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09993/1.343, allocations: 35.43 MB / 1.305 GB, free: 10.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/1.343, allocations: 40.22 kB / 1.305 GB, free: 10.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=25): time 1.853e-06/1.343, allocations: 0 / 1.305 GB, free: 10.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=25): time 0.001845/1.345, allocations: 420 kB / 1.305 GB, free: 9.973 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/1.345, allocations: 58.16 kB / 1.305 GB, free: 9.906 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/1.345, allocations: 142.9 kB / 1.305 GB, free: 9.809 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/1.345, allocations: 32.39 kB / 1.305 GB, free: 9.777 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/1.345, allocations: 102.9 kB / 1.305 GB, free: 9.684 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.567e-05/1.345, allocations: 81.78 kB / 1.305 GB, free: 9.629 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/1.345, allocations: 81.77 kB / 1.305 GB, free: 9.609 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001262/1.345, allocations: 332 kB / 1.306 GB, free: 9.293 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/1.345, allocations: 80.58 kB / 1.306 GB, free: 9.293 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/1.346, allocations: 134.4 kB / 1.306 GB, free: 9.242 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004327/1.346, allocations: 218.9 kB / 1.306 GB, free: 9.191 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/1.346, allocations: 0 / 1.306 GB, free: 9.191 MB / 1.029 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007183/1.347, allocations: 298.2 kB / 1.306 GB, free: 9.152 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/1.347, allocations: 5.656 kB / 1.306 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/1.347, allocations: 2.781 kB / 1.306 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/1.347, allocations: 2.656 kB / 1.306 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/1.347, allocations: 81.92 kB / 1.307 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/1.347, allocations: 2.844 kB / 1.307 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/1.347, allocations: 29.38 kB / 1.307 GB, free: 9.133 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/1.348, allocations: 30.77 kB / 1.307 GB, free: 9.129 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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 0.0002001/1.348, allocations: 130.6 kB / 1.307 GB, free: 9.016 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/1.348, allocations: 17.11 kB / 1.307 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/1.35, allocations: 2.336 MB / 1.309 GB, free: 8.891 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/1.35, allocations: 15.45 kB / 1.309 GB, free: 8.891 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.35, allocations: 0 / 1.309 GB, free: 8.891 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/1.35, allocations: 0.5625 kB / 1.309 GB, free: 8.891 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/1.353, allocations: 3.431 MB / 1.312 GB, free: 8.348 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/1.353, allocations: 2.094 kB / 1.312 GB, free: 8.348 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/1.354, allocations: 63.23 kB / 1.312 GB, free: 8.348 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/1.354, allocations: 0 / 1.312 GB, free: 8.348 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/1.354, allocations: 10 kB / 1.312 GB, free: 8.344 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/1.354, allocations: 2.062 kB / 1.312 GB, free: 8.344 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/1.354, allocations: 0 / 1.312 GB, free: 8.344 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008087/1.354, allocations: 0.5514 MB / 1.313 GB, free: 8.176 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/1.355, allocations: 142.9 kB / 1.313 GB, free: 8.059 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/1.355, allocations: 7.062 kB / 1.313 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/1.355, allocations: 19.09 kB / 1.313 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.93e-05/1.355, allocations: 13.5 kB / 1.313 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/1.355, allocations: 14.86 kB / 1.313 GB, free: 8.055 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.345e-05/1.355, allocations: 109.9 kB / 1.313 GB, free: 7.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.31e-07/1.355, allocations: 0 / 1.313 GB, free: 7.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.008563/1.364, allocations: 1.624 MB / 1.315 GB, free: 7.777 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.01473/1.378, allocations: 2.889 MB / 1.318 GB, free: 6.797 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006137/1.379, allocations: 321.9 kB / 1.318 GB, free: 6.785 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.379, allocations: 2.156 kB / 1.318 GB, free: 6.785 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002791/1.379, allocations: 243.6 kB / 1.318 GB, free: 6.781 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/1.38, allocations: 69.77 kB / 1.318 GB, free: 6.773 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007439/1.387, allocations: 3.038 MB / 1.321 GB, free: 5.188 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/1.388, allocations: 0.7645 MB / 1.322 GB, free: 4.492 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.000433/1.388, allocations: 406.4 kB / 1.322 GB, free: 4.461 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/1.388, allocations: 93.64 kB / 1.323 GB, free: 4.453 MB / 1.029 GB Notification: Performance of SimCode: time 3.8e-07/1.388, allocations: 4 kB / 1.323 GB, free: 4.449 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1061/1.494, allocations: 60.95 MB / 1.382 GB, free: 14.28 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/13.8, allocations: 15.19 kB / 1.382 GB, free: 14.27 MB / 1.076 GB (rm -f Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_SteamProperties.fmu > Buildings_9_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches