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.007985/0.007985, allocations: 100.6 kB / 15.73 MB, free: 6.051 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.00184/0.00184, allocations: 197.6 kB / 16.68 MB, free: 5.965 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.271/2.271, allocations: 390.3 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 62.66 kB / 0.9504 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2786, allocations: 140.4 MB / 1.087 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02578/0.3045, allocations: 23.24 MB / 1.11 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007491/0.312, allocations: 5.085 MB / 1.115 GB, free: 5.656 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008145/0.3128, allocations: 23.88 kB / 1.115 GB, free: 5.633 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0009065/0.3138, allocations: 278 kB / 1.115 GB, free: 5.359 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002492/0.3163, allocations: 0.828 MB / 1.116 GB, free: 4.527 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.3187, allocations: 0.7793 MB / 1.117 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002745/0.3214, allocations: 1.617 MB / 1.119 GB, free: 2.129 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009047/0.3223, allocations: 489.3 kB / 1.119 GB, free: 1.652 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.324, allocations: 0.6344 MB / 1.12 GB, free: 1.02 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007145/0.3247, allocations: 454 kB / 1.12 GB, free: 0.5742 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.3248, allocations: 44 kB / 1.12 GB, free: 0.5312 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.3259, allocations: 487.1 kB / 1.121 GB, free: 56 kB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002055/0.3261, allocations: 147.5 kB / 1.121 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004122/0.3265, allocations: 306.5 kB / 1.121 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.3279, allocations: 0.9239 MB / 1.122 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3279, allocations: 4 kB / 1.122 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3279, allocations: 0 / 1.122 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.578e-05/0.328, allocations: 0 / 1.122 GB, free: 14.68 MB / 0.8887 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.001502/0.3295, allocations: 0.8803 MB / 1.123 GB, free: 13.75 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3295, allocations: 12.03 kB / 1.123 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.156e-05/0.3296, allocations: 74.72 kB / 1.123 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.3299, allocations: 68.19 kB / 1.123 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.3309, allocations: 0.588 MB / 1.124 GB, free: 12.96 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.331, allocations: 29 kB / 1.124 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.331, allocations: 36 kB / 1.124 GB, free: 12.9 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006601/0.3317, allocations: 444.6 kB / 1.124 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3317, allocations: 0 / 1.124 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.3318, allocations: 16 kB / 1.124 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.3318, allocations: 12 kB / 1.124 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005094/0.3323, allocations: 307.8 kB / 1.124 GB, free: 12.11 MB / 0.8887 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.002578/0.3349, allocations: 1.911 MB / 1.126 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/0.3354, allocations: 258.8 kB / 1.126 GB, free: 9.805 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.3356, allocations: 120.8 kB / 1.127 GB, free: 9.684 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007869/0.3364, allocations: 0.8467 MB / 1.127 GB, free: 8.652 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.3364, allocations: 38.5 kB / 1.127 GB, free: 8.605 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.3364, allocations: 4 kB / 1.127 GB, free: 8.602 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0006814/0.3371, allocations: 369.5 kB / 1.128 GB, free: 8.234 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.3372, allocations: 55.41 kB / 1.128 GB, free: 8.168 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005444/0.3377, allocations: 478 kB / 1.128 GB, free: 7.688 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.3378, allocations: 37.64 kB / 1.128 GB, free: 7.645 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.338, allocations: 260.1 kB / 1.129 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 8.417e-05/0.338, allocations: 90.66 kB / 1.129 GB, free: 7.297 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.3382, allocations: 73.92 kB / 1.129 GB, free: 7.219 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3383, allocations: 358.8 kB / 1.129 GB, free: 6.859 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.3385, allocations: 92.61 kB / 1.129 GB, free: 6.77 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.3387, allocations: 180 kB / 1.129 GB, free: 6.57 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.3391, allocations: 287.2 kB / 1.13 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3391, allocations: 0 / 1.13 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005676/0.3397, allocations: 364.8 kB / 1.13 GB, free: 5.902 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3397, allocations: 4 kB / 1.13 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3397, allocations: 4.219 kB / 1.13 GB, free: 5.895 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.3397, allocations: 7.938 kB / 1.13 GB, free: 5.887 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.34, allocations: 79.84 kB / 1.13 GB, free: 5.809 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.34, allocations: 3.938 kB / 1.13 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.3403, allocations: 43.52 kB / 1.13 GB, free: 5.762 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.3403, allocations: 16 kB / 1.13 GB, free: 5.746 MB / 0.8887 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.000187/0.3405, allocations: 178.8 kB / 1.13 GB, free: 5.562 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.665e-05/0.3406, allocations: 47.44 kB / 1.13 GB, free: 5.516 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007521/0.3414, allocations: 480.8 kB / 1.131 GB, free: 5.039 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3414, allocations: 7.938 kB / 1.131 GB, free: 5.031 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.3414, allocations: 0 / 1.131 GB, free: 5.031 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005593/0.3419, allocations: 0.565 MB / 1.131 GB, free: 4.398 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.3436, allocations: 1.152 MB / 1.132 GB, free: 3.152 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3436, allocations: 4.188 kB / 1.132 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.3438, allocations: 55.84 kB / 1.133 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.3438, allocations: 0 / 1.133 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.3439, allocations: 19.98 kB / 1.133 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3439, allocations: 3.938 kB / 1.133 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3439, allocations: 4 kB / 1.133 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008283/0.3447, allocations: 0.6562 MB / 1.133 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.3449, allocations: 176.3 kB / 1.133 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.556e-05/0.345, allocations: 8 kB / 1.133 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.3453, allocations: 19.91 kB / 1.133 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.3453, allocations: 31.91 kB / 1.133 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/0.3454, allocations: 16 kB / 1.133 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004104/0.3458, allocations: 346.8 kB / 1.134 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3458, allocations: 0 / 1.134 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005963/0.3464, allocations: 195.8 kB / 1.134 GB, free: 1.582 MB / 0.8887 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.001604/0.348, allocations: 1.389 MB / 1.135 GB, free: 160 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005576/0.3486, allocations: 283.8 kB / 1.136 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3486, allocations: 0 / 1.136 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.3488, allocations: 171.7 kB / 1.136 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.3502, allocations: 341.9 kB / 1.136 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005183/0.3554, allocations: 4.2 MB / 1.14 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.3559, allocations: 0.8666 MB / 1.141 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0003525/0.3562, allocations: 124.6 kB / 1.141 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.3565, allocations: 187.4 kB / 1.141 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.3565, allocations: 0 / 1.141 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04229/0.3988, allocations: 16.98 MB / 1.158 GB, free: 9.113 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.626/9.025, allocations: 7.938 kB / 1.158 GB, free: 9.105 MB / 0.92 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