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 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.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.001385/0.001385, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001285/0.001285, allocations: 195 kB / 16.14 MB, free: 6.711 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.264/1.264, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.489/2.489, allocations: 461.9 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.89 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2388, allocations: 157.4 MB / 1.052 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005723/0.2445, allocations: 4.758 MB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002594/0.2471, allocations: 2.718 MB / 1.059 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.2473, allocations: 0 / 1.059 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.2475, allocations: 39.8 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.2478, allocations: 87.48 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.2489, allocations: 474.3 kB / 1.06 GB, free: 128 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.2493, allocations: 311.8 kB / 1.06 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.2493, allocations: 9.562 kB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.2495, allocations: 107.6 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2496, allocations: 87.67 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.2497, allocations: 11.94 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006496/0.2503, allocations: 375.2 kB / 1.061 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.818e-05/0.2504, allocations: 35.89 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.263e-05/0.2505, allocations: 79.64 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005569/0.2511, allocations: 363.3 kB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2511, allocations: 0 / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.01e-07/0.2511, allocations: 0 / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2511, allocations: 0 / 1.061 GB, free: 14.77 MB / 0.8262 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.0006237/0.2517, allocations: 0.5032 MB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.2518, allocations: 11.97 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.782e-05/0.2518, allocations: 62.67 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.252, allocations: 20.75 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.2521, allocations: 208.1 kB / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.2522, allocations: 12.7 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.2522, allocations: 16.38 kB / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.2525, allocations: 247.9 kB / 1.062 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2525, allocations: 7.938 kB / 1.062 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.2526, allocations: 8 kB / 1.062 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.2526, allocations: 8 kB / 1.062 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.253, allocations: 431.5 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009815/0.254, allocations: 0.941 MB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.2543, allocations: 157.7 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.291e-05/0.2544, allocations: 64.88 kB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001192/0.2556, allocations: 1.833 MB / 1.066 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.2556, allocations: 34.56 kB / 1.066 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.2556, allocations: 0 / 1.066 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0002943/0.2559, allocations: 145.4 kB / 1.066 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.256, allocations: 51.41 kB / 1.066 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.2561, allocations: 179.9 kB / 1.066 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.2561, allocations: 29.7 kB / 1.066 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.2562, allocations: 143.8 kB / 1.066 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.2563, allocations: 59.19 kB / 1.066 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/0.2563, allocations: 49.7 kB / 1.066 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.52e-05/0.2564, allocations: 318.8 kB / 1.067 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.206e-05/0.2565, allocations: 35.98 kB / 1.067 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.2566, allocations: 145.6 kB / 1.067 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.2568, allocations: 196.6 kB / 1.067 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2568, allocations: 4 kB / 1.067 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002877/0.2571, allocations: 213.1 kB / 1.067 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2571, allocations: 8 kB / 1.067 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2572, allocations: 4 kB / 1.067 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2572, allocations: 7.938 kB / 1.067 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.2573, allocations: 55.91 kB / 1.067 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2573, allocations: 11.94 kB / 1.067 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.2575, allocations: 28.09 kB / 1.067 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.2575, allocations: 20 kB / 1.067 GB, free: 7.82 MB / 0.8262 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 9.016e-05/0.2576, allocations: 131.7 kB / 1.068 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.939e-05/0.2576, allocations: 15.81 kB / 1.068 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.2579, allocations: 151 kB / 1.068 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.2579, allocations: 11.92 kB / 1.068 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2579, allocations: 0 / 1.068 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2579, allocations: 3.984 kB / 1.068 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.2582, allocations: 217.5 kB / 1.068 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2582, allocations: 4 kB / 1.068 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.615e-05/0.2583, allocations: 31.86 kB / 1.068 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2583, allocations: 0 / 1.068 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.2583, allocations: 8 kB / 1.068 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.2583, allocations: 3.938 kB / 1.068 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2583, allocations: 0 / 1.068 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.2585, allocations: 221.9 kB / 1.068 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.2586, allocations: 104.9 kB / 1.068 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.2586, allocations: 8 kB / 1.068 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.2588, allocations: 15.92 kB / 1.068 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.2589, allocations: 19.92 kB / 1.068 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.2589, allocations: 11.98 kB / 1.068 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.382e-05/0.259, allocations: 116 kB / 1.068 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.259, allocations: 0 / 1.068 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003519/0.2593, allocations: 79.94 kB / 1.069 GB, free: 6.594 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 (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.0006183/0.26, allocations: 0.8215 MB / 1.069 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000197/0.2602, allocations: 121.9 kB / 1.069 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2602, allocations: 0 / 1.069 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.526e-05/0.2602, allocations: 47.86 kB / 1.07 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004033/0.2607, allocations: 53.48 kB / 1.07 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.2625, allocations: 2.077 MB / 1.072 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.2628, allocations: 0.717 MB / 1.072 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000165/0.263, allocations: 53.73 kB / 1.072 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.335e-05/0.263, allocations: 43.42 kB / 1.072 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.263, allocations: 0 / 1.072 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.288/1.551, allocations: 4.997 MB / 1.077 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/1.551, allocations: 191.6 kB / 1.077 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.24/4.791, allocations: 0 / 1.077 GB, free: 13.3 MB / 0.8419 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=50 --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