Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.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.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter",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.001419/0.001419, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00158/0.00158, allocations: 189.3 kB / 16.25 MB, free: 6.625 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.314/1.314, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.261/2.261, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.89 kB / 0.8122 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6081/0.6095, allocations: 140.4 MB / 0.9492 GB, free: 9.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.01739/0.627, allocations: 23.09 MB / 0.9718 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006547/0.6335, allocations: 5.056 MB / 0.9767 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008583/0.6344, allocations: 22.97 kB / 0.9767 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000816/0.6353, allocations: 241 kB / 0.977 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001975/0.6373, allocations: 0.7307 MB / 0.9777 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001816/0.6391, allocations: 0.7007 MB / 0.9784 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002043/0.6412, allocations: 1.618 MB / 0.98 GB, free: 196 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007658/0.6419, allocations: 478.2 kB / 0.9804 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.6435, allocations: 0.6129 MB / 0.981 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000822/0.6444, allocations: 471.7 kB / 0.9815 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.6445, allocations: 45.31 kB / 0.9815 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.6457, allocations: 499.6 kB / 0.982 GB, free: 15 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.6459, allocations: 144.5 kB / 0.9821 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0004959/0.6464, allocations: 306.6 kB / 0.9824 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.6479, allocations: 0.92 MB / 0.9833 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.6479, allocations: 0 / 0.9833 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6479, allocations: 0 / 0.9833 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.288e-05/0.6479, allocations: 1.406 kB / 0.9833 GB, free: 14.1 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001581/0.6495, allocations: 0.8876 MB / 0.9842 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.6495, allocations: 9.906 kB / 0.9842 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.97e-05/0.6496, allocations: 75.31 kB / 0.9843 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002506/0.6499, allocations: 62.66 kB / 0.9843 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009878/0.6509, allocations: 0.5587 MB / 0.9849 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.6509, allocations: 29.62 kB / 0.9849 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.624e-05/0.651, allocations: 46.12 kB / 0.9849 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007156/0.6517, allocations: 438.8 kB / 0.9853 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.6518, allocations: 1.156 kB / 0.9854 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.6518, allocations: 19.66 kB / 0.9854 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.6518, allocations: 14.17 kB / 0.9854 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005244/0.6524, allocations: 303.8 kB / 0.9857 GB, free: 12.31 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002534/0.6549, allocations: 1.919 MB / 0.9875 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004604/0.6554, allocations: 258.6 kB / 0.9878 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.6556, allocations: 120.8 kB / 0.9879 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007435/0.6563, allocations: 0.8584 MB / 0.9887 GB, free: 8.992 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.6564, allocations: 34.56 kB / 0.9888 GB, free: 8.949 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.452e-06/0.6564, allocations: 0 / 0.9888 GB, free: 8.949 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0006402/0.657, allocations: 374.8 kB / 0.9891 GB, free: 8.578 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.657, allocations: 55.41 kB / 0.9892 GB, free: 8.512 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004739/0.6575, allocations: 466.1 kB / 0.9896 GB, free: 8.047 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.6576, allocations: 33.7 kB / 0.9897 GB, free: 8.008 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.6577, allocations: 260 kB / 0.9899 GB, free: 7.75 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.21e-05/0.6578, allocations: 94.66 kB / 0.99 GB, free: 7.656 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.6579, allocations: 69.92 kB / 0.9901 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.658, allocations: 358.8 kB / 0.9904 GB, free: 7.223 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.6582, allocations: 92.61 kB / 0.9905 GB, free: 7.133 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.6584, allocations: 180 kB / 0.9907 GB, free: 6.934 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003549/0.6588, allocations: 275.2 kB / 0.9909 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.6588, allocations: 0 / 0.9909 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005306/0.6593, allocations: 368.8 kB / 0.9913 GB, free: 6.273 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.6593, allocations: 6.031 kB / 0.9913 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.6594, allocations: 4.219 kB / 0.9913 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.6594, allocations: 11.94 kB / 0.9913 GB, free: 6.254 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.6596, allocations: 75.89 kB / 0.9914 GB, free: 6.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.6597, allocations: 4 kB / 0.9914 GB, free: 6.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.66, allocations: 43.52 kB / 0.9914 GB, free: 6.133 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.66, allocations: 16 kB / 0.9914 GB, free: 6.117 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * 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.0001814/0.6602, allocations: 181.7 kB / 0.9916 GB, free: 5.93 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-05/0.6603, allocations: 51.38 kB / 0.9917 GB, free: 5.879 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007309/0.6611, allocations: 476.9 kB / 0.9921 GB, free: 5.402 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.6611, allocations: 7.938 kB / 0.9921 GB, free: 5.395 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6611, allocations: 0 / 0.9921 GB, free: 5.395 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004955/0.6616, allocations: 0.5723 MB / 0.9927 GB, free: 4.754 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.6632, allocations: 1.16 MB / 0.9938 GB, free: 3.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.6632, allocations: 3.984 kB / 0.9938 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.6634, allocations: 47.92 kB / 0.9939 GB, free: 3.449 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.6635, allocations: 4 kB / 0.9939 GB, free: 3.445 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.6635, allocations: 15.98 kB / 0.9939 GB, free: 3.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.6635, allocations: 4.188 kB / 0.9939 GB, free: 3.426 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6635, allocations: 7.938 kB / 0.9939 GB, free: 3.418 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000753/0.6643, allocations: 0.6716 MB / 0.9946 GB, free: 2.711 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.6645, allocations: 168.4 kB / 0.9947 GB, free: 2.527 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.684e-05/0.6646, allocations: 8 kB / 0.9947 GB, free: 2.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.6649, allocations: 15.98 kB / 0.9947 GB, free: 2.504 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.6649, allocations: 31.84 kB / 0.9948 GB, free: 2.473 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.6649, allocations: 19.98 kB / 0.9948 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000339/0.6653, allocations: 342.9 kB / 0.9951 GB, free: 2.121 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6653, allocations: 0 / 0.9951 GB, free: 2.121 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006236/0.6659, allocations: 195.8 kB / 0.9953 GB, free: 1.93 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001498/0.6674, allocations: 1.389 MB / 0.9967 GB, free: 0.5 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004869/0.6679, allocations: 305.6 kB / 0.9969 GB, free: 208 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6679, allocations: 4 kB / 0.997 GB, free: 204 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.6681, allocations: 159.8 kB / 0.9971 GB, free: 44 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.6696, allocations: 343.3 kB / 0.9974 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005004/0.6746, allocations: 4.446 MB / 1.002 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.675, allocations: 0.8666 MB / 1.003 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003787/0.6753, allocations: 112.7 kB / 1.003 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.6756, allocations: 195.3 kB / 1.003 GB, free: 9.922 MB / 0.7637 GB Notification: Performance of SimCode: time 5.21e-07/0.6756, allocations: 3.938 kB / 1.003 GB, free: 9.918 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.796/3.471, allocations: 16.58 MB / 1.019 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/3.471, allocations: 236 kB / 1.019 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.391/6.863, allocations: 0 / 1.019 GB, free: 9.375 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches