Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterProperties.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.WaterProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterProperties",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.004688/0.004688, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001317/0.001317, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.204/1.204, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.38/2.38, allocations: 482.6 MB / 0.755 GB, free: 6.664 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 67.84 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2552, allocations: 162.3 MB / 1.242 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005252/0.2605, allocations: 4.726 MB / 1.246 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002612/0.2631, allocations: 2.699 MB / 1.249 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.735e-05/0.2632, allocations: 0 / 1.249 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.2634, allocations: 47.67 kB / 1.249 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.2636, allocations: 95.36 kB / 1.249 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008831/0.2645, allocations: 0.497 MB / 1.25 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.2648, allocations: 228 kB / 1.25 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.834e-05/0.2648, allocations: 14.95 kB / 1.25 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.265, allocations: 115.5 kB / 1.25 GB, free: 460 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.2651, allocations: 91.66 kB / 1.25 GB, free: 368 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.347e-05/0.2652, allocations: 12 kB / 1.25 GB, free: 356 kB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005969/0.2658, allocations: 367.3 kB / 1.251 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.055e-05/0.2658, allocations: 35.84 kB / 1.251 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.243e-05/0.2659, allocations: 83.64 kB / 1.251 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005101/0.2664, allocations: 359.1 kB / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2664, allocations: 4 kB / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2665, allocations: 0 / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.2665, allocations: 0 / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006541/0.2671, allocations: 0.5103 MB / 1.252 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.2672, allocations: 12.03 kB / 1.252 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.2672, allocations: 50.73 kB / 1.252 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.2674, allocations: 24.83 kB / 1.252 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.2676, allocations: 212.2 kB / 1.252 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2676, allocations: 8.703 kB / 1.252 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.2676, allocations: 20.31 kB / 1.252 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003461/0.268, allocations: 252 kB / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.268, allocations: 0 / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.268, allocations: 11.98 kB / 1.252 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.2681, allocations: 4 kB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.2685, allocations: 427.5 kB / 1.252 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.2696, allocations: 0.9605 MB / 1.253 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.2698, allocations: 155.1 kB / 1.254 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.294e-05/0.2699, allocations: 64.88 kB / 1.254 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001319/0.2712, allocations: 1.825 MB / 1.255 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.2713, allocations: 34.56 kB / 1.255 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.2713, allocations: 0 / 1.255 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0002932/0.2716, allocations: 155.5 kB / 1.256 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.2716, allocations: 51.41 kB / 1.256 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.2718, allocations: 180.4 kB / 1.256 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.2718, allocations: 33.7 kB / 1.256 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.267e-05/0.2719, allocations: 136.1 kB / 1.256 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.2719, allocations: 55.55 kB / 1.256 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/0.272, allocations: 57.69 kB / 1.256 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2722, allocations: 326.8 kB / 1.256 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.231e-05/0.2723, allocations: 31.98 kB / 1.256 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.2724, allocations: 145.5 kB / 1.257 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.2726, allocations: 199.1 kB / 1.257 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2726, allocations: 4 kB / 1.257 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003005/0.2729, allocations: 217.2 kB / 1.257 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.273, allocations: 9.875 kB / 1.257 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.273, allocations: 4 kB / 1.257 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.273, allocations: 7.938 kB / 1.257 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.2731, allocations: 59.91 kB / 1.257 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2732, allocations: 4 kB / 1.257 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.497e-05/0.2733, allocations: 28.25 kB / 1.257 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.2733, allocations: 20 kB / 1.257 GB, free: 8.535 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 29 * Array equations: 1 * 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.0001046/0.2734, allocations: 137.6 kB / 1.257 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.2734, allocations: 15.91 kB / 1.257 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003136/0.2738, allocations: 165 kB / 1.257 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.2738, allocations: 3.938 kB / 1.257 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2738, allocations: 0 / 1.257 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2738, allocations: 0 / 1.257 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.274, allocations: 213.6 kB / 1.258 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.274, allocations: 4 kB / 1.258 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.575e-05/0.2741, allocations: 23.98 kB / 1.258 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2741, allocations: 0 / 1.258 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.2741, allocations: 8 kB / 1.258 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2741, allocations: 3.938 kB / 1.258 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2741, allocations: 0 / 1.258 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.2744, allocations: 227.4 kB / 1.258 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/0.2745, allocations: 112.9 kB / 1.258 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.2745, allocations: 4 kB / 1.258 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.2747, allocations: 19.92 kB / 1.258 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.916e-05/0.2747, allocations: 7.984 kB / 1.258 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.2747, allocations: 19.98 kB / 1.258 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.2e-05/0.2748, allocations: 120 kB / 1.258 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2748, allocations: 0 / 1.258 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003212/0.2752, allocations: 75.86 kB / 1.258 GB, free: 7.301 MB / 0.9825 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0006452/0.2758, allocations: 0.8319 MB / 1.259 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002086/0.276, allocations: 128.2 kB / 1.259 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.276, allocations: 0 / 1.259 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.94e-05/0.2761, allocations: 47.91 kB / 1.259 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.2765, allocations: 48.41 kB / 1.259 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.2785, allocations: 2.04 MB / 1.261 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.2788, allocations: 0.7128 MB / 1.262 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001297/0.2789, allocations: 49.75 kB / 1.262 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.237e-05/0.279, allocations: 43.42 kB / 1.262 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.279, allocations: 0 / 1.262 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.21/2.489, allocations: 5.266 MB / 1.267 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/13.3, allocations: 4.562 kB / 1.267 GB, free: 14.02 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterProperties_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterProperties.fmu > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches