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.001111/0.001111, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 193 kB / 16.53 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.374/2.374, allocations: 390.3 MB / 0.6647 GB, free: 440 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 63.91 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6534/0.6556, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02123/0.6769, allocations: 23.24 MB / 0.9724 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007398/0.6843, allocations: 5.079 MB / 0.9774 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008242/0.6852, allocations: 30.09 kB / 0.9774 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007493/0.6859, allocations: 271.9 kB / 0.9777 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001952/0.688, allocations: 0.7923 MB / 0.9784 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.6899, allocations: 0.7619 MB / 0.9792 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002013/0.692, allocations: 1.609 MB / 0.9808 GB, free: 0 / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007302/0.6927, allocations: 482 kB / 0.9812 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00147/0.6942, allocations: 0.6169 MB / 0.9818 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005463/0.6947, allocations: 449.6 kB / 0.9822 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.942e-05/0.6948, allocations: 46.06 kB / 0.9823 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.6959, allocations: 487.3 kB / 0.9828 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.6961, allocations: 139.4 kB / 0.9829 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002996/0.6964, allocations: 309.7 kB / 0.9832 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.6975, allocations: 0.9129 MB / 0.9841 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.6975, allocations: 4 kB / 0.9841 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6976, allocations: 0 / 0.9841 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.518e-05/0.6976, allocations: 0 / 0.9841 GB, free: 13.93 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.001248/0.6988, allocations: 0.8903 MB / 0.9849 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.6989, allocations: 9.125 kB / 0.985 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.699, allocations: 76.91 kB / 0.985 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.6992, allocations: 70.86 kB / 0.9851 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009356/0.7002, allocations: 0.5455 MB / 0.9856 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.7002, allocations: 28.69 kB / 0.9857 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/0.7003, allocations: 42.39 kB / 0.9857 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000753/0.701, allocations: 443.5 kB / 0.9861 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.7011, allocations: 8.906 kB / 0.9861 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.7011, allocations: 15.47 kB / 0.9861 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.7012, allocations: 10.41 kB / 0.9862 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005218/0.7017, allocations: 301.9 kB / 0.9864 GB, free: 12.04 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.002541/0.7042, allocations: 1.923 MB / 0.9883 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004811/0.7047, allocations: 260.1 kB / 0.9886 GB, free: 9.719 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.7049, allocations: 120.8 kB / 0.9887 GB, free: 9.598 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000867/0.7058, allocations: 0.8584 MB / 0.9895 GB, free: 8.555 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.7058, allocations: 30.56 kB / 0.9895 GB, free: 8.516 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.372e-06/0.7058, allocations: 0 / 0.9895 GB, free: 8.516 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0006701/0.7065, allocations: 378.7 kB / 0.9899 GB, free: 8.141 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.7066, allocations: 51.41 kB / 0.99 GB, free: 8.078 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005092/0.7071, allocations: 474.1 kB / 0.9904 GB, free: 7.605 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.7071, allocations: 33.7 kB / 0.9904 GB, free: 7.566 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.7073, allocations: 260 kB / 0.9907 GB, free: 7.309 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.082e-05/0.7074, allocations: 98.64 kB / 0.9908 GB, free: 7.211 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.986e-05/0.7075, allocations: 62.03 kB / 0.9908 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.7076, allocations: 358.8 kB / 0.9912 GB, free: 6.785 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.7078, allocations: 100.6 kB / 0.9913 GB, free: 6.688 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.708, allocations: 176 kB / 0.9914 GB, free: 6.492 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.7084, allocations: 287.2 kB / 0.9917 GB, free: 6.188 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.7084, allocations: 0 / 0.9917 GB, free: 6.188 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005442/0.709, allocations: 360.7 kB / 0.9921 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.709, allocations: 8 kB / 0.9921 GB, free: 5.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.709, allocations: 3.938 kB / 0.9921 GB, free: 5.816 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.709, allocations: 8.156 kB / 0.9921 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.7093, allocations: 79.89 kB / 0.9922 GB, free: 5.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.7093, allocations: 4 kB / 0.9922 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.7096, allocations: 35.62 kB / 0.9922 GB, free: 5.691 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.7096, allocations: 20.03 kB / 0.9922 GB, free: 5.672 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.0001872/0.7098, allocations: 173.8 kB / 0.9924 GB, free: 5.492 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.544e-05/0.7099, allocations: 59.27 kB / 0.9924 GB, free: 5.434 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007697/0.7107, allocations: 469 kB / 0.9929 GB, free: 4.965 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.7107, allocations: 15.86 kB / 0.9929 GB, free: 4.949 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.7107, allocations: 4 kB / 0.9929 GB, free: 4.945 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005697/0.7113, allocations: 0.5651 MB / 0.9935 GB, free: 4.312 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.713, allocations: 1.164 MB / 0.9946 GB, free: 3.055 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.713, allocations: 4 kB / 0.9946 GB, free: 3.051 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.7132, allocations: 51.91 kB / 0.9946 GB, free: 3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.7132, allocations: 4 kB / 0.9947 GB, free: 2.996 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.7133, allocations: 8 kB / 0.9947 GB, free: 2.988 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.7133, allocations: 4 kB / 0.9947 GB, free: 2.984 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.7133, allocations: 4 kB / 0.9947 GB, free: 2.98 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008747/0.7142, allocations: 0.6642 MB / 0.9953 GB, free: 2.281 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.7144, allocations: 172.4 kB / 0.9955 GB, free: 2.094 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.7144, allocations: 8 kB / 0.9955 GB, free: 2.086 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.7147, allocations: 16 kB / 0.9955 GB, free: 2.07 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.7148, allocations: 27.84 kB / 0.9955 GB, free: 2.043 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.7148, allocations: 15.98 kB / 0.9955 GB, free: 2.027 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003935/0.7152, allocations: 350.8 kB / 0.9959 GB, free: 1.688 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7152, allocations: 0 / 0.9959 GB, free: 1.688 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006766/0.7159, allocations: 191.8 kB / 0.9961 GB, free: 1.5 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.001657/0.7176, allocations: 1.39 MB / 0.9974 GB, free: 72 kB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005509/0.7181, allocations: 317.9 kB / 0.9977 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.852e-06/0.7181, allocations: 8.062 kB / 0.9977 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.7184, allocations: 159.8 kB / 0.9979 GB, free: 15.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.7199, allocations: 334.7 kB / 0.9982 GB, free: 15.28 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/0.7251, allocations: 4.296 MB / 1.002 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.7256, allocations: 0.8666 MB / 1.003 GB, free: 9.938 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004633/0.726, allocations: 120.6 kB / 1.003 GB, free: 9.82 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.7263, allocations: 191.4 kB / 1.004 GB, free: 9.633 MB / 0.7637 GB Notification: Performance of SimCode: time 6.71e-07/0.7263, allocations: 0 / 1.004 GB, free: 9.633 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03848/0.7648, allocations: 16.86 MB / 1.02 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.452/10.22, allocations: 9.391 kB / 1.02 GB, free: 9.023 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