Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_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.00127/0.00127, allocations: 111.9 kB / 15.61 MB, free: 128 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.001387/0.001388, allocations: 192.7 kB / 16.53 MB, free: 6.668 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.256/1.256, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.476/2.476, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 66.33 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2539, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02176/0.2757, allocations: 23.25 MB / 1.076 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006401/0.2822, allocations: 5.084 MB / 1.081 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006419/0.2828, allocations: 23.88 kB / 1.081 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006967/0.2835, allocations: 286 kB / 1.081 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.2852, allocations: 0.785 MB / 1.082 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.2868, allocations: 0.7422 MB / 1.082 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001606/0.2884, allocations: 1.625 MB / 1.084 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006273/0.289, allocations: 485.5 kB / 1.084 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.2903, allocations: 0.6028 MB / 1.085 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005728/0.2908, allocations: 454 kB / 1.085 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.972e-05/0.2909, allocations: 48 kB / 1.085 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008654/0.2918, allocations: 487.1 kB / 1.086 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.292, allocations: 143.5 kB / 1.086 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002946/0.2923, allocations: 310.5 kB / 1.086 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.2933, allocations: 0.9114 MB / 1.087 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2933, allocations: 4 kB / 1.087 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2934, allocations: 0 / 1.087 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.2934, allocations: 0 / 1.087 GB, free: 4.957 MB / 0.8419 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.00116/0.2945, allocations: 0.8842 MB / 1.088 GB, free: 4.023 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2946, allocations: 12.56 kB / 1.088 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.203e-05/0.2947, allocations: 82.7 kB / 1.088 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.2949, allocations: 64.19 kB / 1.088 GB, free: 3.859 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007964/0.2957, allocations: 0.5491 MB / 1.089 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.2957, allocations: 29 kB / 1.089 GB, free: 3.242 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.2958, allocations: 40 kB / 1.089 GB, free: 3.203 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.2964, allocations: 436.7 kB / 1.089 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2964, allocations: 0 / 1.089 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.2965, allocations: 16 kB / 1.089 GB, free: 2.738 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.2965, allocations: 11.94 kB / 1.089 GB, free: 2.727 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004594/0.2969, allocations: 303.8 kB / 1.09 GB, free: 2.434 MB / 0.8419 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.002326/0.2993, allocations: 1.927 MB / 1.091 GB, free: 384 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.2997, allocations: 256.6 kB / 1.092 GB, free: 120 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.3, allocations: 132.8 kB / 1.092 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007382/0.3007, allocations: 0.8466 MB / 1.093 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3008, allocations: 42.56 kB / 1.093 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.3008, allocations: 0 / 1.093 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.000613/0.3014, allocations: 368.8 kB / 1.093 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.765e-05/0.3014, allocations: 63.34 kB / 1.093 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004763/0.3019, allocations: 474 kB / 1.094 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.3019, allocations: 37.69 kB / 1.094 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.3021, allocations: 260 kB / 1.094 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.747e-05/0.3022, allocations: 94.64 kB / 1.094 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.516e-05/0.3023, allocations: 73.92 kB / 1.094 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3024, allocations: 354.8 kB / 1.094 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.3026, allocations: 104.5 kB / 1.094 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.3028, allocations: 172 kB / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.3031, allocations: 287.1 kB / 1.095 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3031, allocations: 0 / 1.095 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005089/0.3036, allocations: 361 kB / 1.095 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3037, allocations: 8.031 kB / 1.095 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.3037, allocations: 7.984 kB / 1.095 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3037, allocations: 7.938 kB / 1.095 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.304, allocations: 67.91 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.304, allocations: 4 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.3042, allocations: 39.58 kB / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.3043, allocations: 12 kB / 1.095 GB, free: 12.06 MB / 0.8575 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.0001708/0.3044, allocations: 181.7 kB / 1.096 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.3045, allocations: 51.44 kB / 1.096 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007009/0.3052, allocations: 476.9 kB / 1.096 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.3052, allocations: 7.938 kB / 1.096 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3053, allocations: 0 / 1.096 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004917/0.3058, allocations: 0.5663 MB / 1.097 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.3073, allocations: 1.157 MB / 1.098 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3073, allocations: 0 / 1.098 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.3075, allocations: 51.91 kB / 1.098 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.3075, allocations: 4 kB / 1.098 GB, free: 9.402 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.3075, allocations: 8 kB / 1.098 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3075, allocations: 4 kB / 1.098 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3075, allocations: 192 / 1.098 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008096/0.3084, allocations: 0.6754 MB / 1.098 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.3086, allocations: 180.3 kB / 1.099 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.8e-05/0.3086, allocations: 8 kB / 1.099 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.3089, allocations: 8 kB / 1.099 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.3089, allocations: 28.05 kB / 1.099 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.309, allocations: 19.98 kB / 1.099 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003715/0.3094, allocations: 342.9 kB / 1.099 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3094, allocations: 0 / 1.099 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005912/0.31, allocations: 199.8 kB / 1.099 GB, free: 7.895 MB / 0.8575 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.001453/0.3114, allocations: 1.392 MB / 1.101 GB, free: 6.465 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005323/0.312, allocations: 315.4 kB / 1.101 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.312, allocations: 0 / 1.101 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.3122, allocations: 163.8 kB / 1.101 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.3137, allocations: 336.9 kB / 1.101 GB, free: 5.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004796/0.3185, allocations: 4.296 MB / 1.106 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.3188, allocations: 0.8666 MB / 1.106 GB, free: 340 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003704/0.3192, allocations: 116.7 kB / 1.107 GB, free: 224 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.3194, allocations: 191.4 kB / 1.107 GB, free: 32 kB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.3194, allocations: 0 / 1.107 GB, free: 32 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6142/0.9337, allocations: 16.88 MB / 1.123 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.99/17.92, allocations: 14.06 kB / 1.123 GB, free: 15.37 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches