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.005854/0.005854, allocations: 101.3 kB / 15.73 MB, free: 6.043 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.001374/0.001374, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.412/2.412, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.266, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02581/0.2918, allocations: 23.24 MB / 1.11 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.008767/0.3007, allocations: 5.085 MB / 1.115 GB, free: 5.551 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.3019, allocations: 23.88 kB / 1.115 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.3031, allocations: 282 kB / 1.115 GB, free: 5.25 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.3057, allocations: 0.7914 MB / 1.116 GB, free: 4.457 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002465/0.3082, allocations: 0.7618 MB / 1.117 GB, free: 3.699 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002491/0.3107, allocations: 1.609 MB / 1.119 GB, free: 2.082 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009181/0.3117, allocations: 493.3 kB / 1.119 GB, free: 1.602 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.3136, allocations: 0.6125 MB / 1.12 GB, free: 0.9883 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008421/0.3145, allocations: 454 kB / 1.12 GB, free: 0.543 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.3147, allocations: 44 kB / 1.12 GB, free: 0.5 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.3159, allocations: 487.1 kB / 1.121 GB, free: 24 kB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.3162, allocations: 143.7 kB / 1.121 GB, free: 15.88 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0005103/0.3167, allocations: 310.5 kB / 1.121 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.3185, allocations: 0.9238 MB / 1.122 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3185, allocations: 0 / 1.122 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3185, allocations: 0 / 1.122 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.053e-05/0.3186, allocations: 0 / 1.122 GB, free: 14.65 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.001651/0.3202, allocations: 0.8843 MB / 1.123 GB, free: 13.72 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3203, allocations: 12.03 kB / 1.123 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.3204, allocations: 74.72 kB / 1.123 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.3207, allocations: 64.19 kB / 1.123 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.3218, allocations: 0.5919 MB / 1.123 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.3219, allocations: 33 kB / 1.123 GB, free: 12.9 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.129e-05/0.322, allocations: 36 kB / 1.124 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007463/0.3227, allocations: 436.7 kB / 1.124 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.3228, allocations: 0 / 1.124 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.3228, allocations: 16 kB / 1.124 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.104e-05/0.3228, allocations: 15.98 kB / 1.124 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005404/0.3234, allocations: 307.8 kB / 1.124 GB, free: 12.08 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.002872/0.3263, allocations: 1.911 MB / 1.126 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.3268, allocations: 260.8 kB / 1.126 GB, free: 9.773 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.327, allocations: 128.7 kB / 1.126 GB, free: 9.645 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008556/0.3279, allocations: 0.8506 MB / 1.127 GB, free: 8.609 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.3279, allocations: 34.56 kB / 1.127 GB, free: 8.566 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 2.124e-06/0.3279, allocations: 4 kB / 1.127 GB, free: 8.562 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0007568/0.3287, allocations: 373.5 kB / 1.128 GB, free: 8.191 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.3288, allocations: 55.41 kB / 1.128 GB, free: 8.125 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005962/0.3294, allocations: 474 kB / 1.128 GB, free: 7.648 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.3294, allocations: 33.7 kB / 1.128 GB, free: 7.609 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.3296, allocations: 252.1 kB / 1.129 GB, free: 7.359 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.158e-05/0.3297, allocations: 94.64 kB / 1.129 GB, free: 7.266 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3298, allocations: 77.92 kB / 1.129 GB, free: 7.184 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.33, allocations: 358.8 kB / 1.129 GB, free: 6.824 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.3302, allocations: 100.5 kB / 1.129 GB, free: 6.727 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.3304, allocations: 168 kB / 1.129 GB, free: 6.539 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.3308, allocations: 295.1 kB / 1.13 GB, free: 6.227 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3308, allocations: 0 / 1.13 GB, free: 6.227 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006136/0.3314, allocations: 364.9 kB / 1.13 GB, free: 5.863 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3315, allocations: 5.406 kB / 1.13 GB, free: 5.859 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3315, allocations: 0 / 1.13 GB, free: 5.859 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3315, allocations: 7.938 kB / 1.13 GB, free: 5.852 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.3318, allocations: 75.83 kB / 1.13 GB, free: 5.777 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.3318, allocations: 4 kB / 1.13 GB, free: 5.773 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.3321, allocations: 43.53 kB / 1.13 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.3322, allocations: 16.16 kB / 1.13 GB, free: 5.715 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.0002066/0.3324, allocations: 185.8 kB / 1.13 GB, free: 5.523 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.3325, allocations: 47.44 kB / 1.13 GB, free: 5.477 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008305/0.3333, allocations: 481 kB / 1.131 GB, free: 5 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.3334, allocations: 7.938 kB / 1.131 GB, free: 4.992 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3334, allocations: 0 / 1.131 GB, free: 4.992 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000566/0.3339, allocations: 0.5728 MB / 1.131 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.3358, allocations: 1.153 MB / 1.132 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.3358, allocations: 4 kB / 1.132 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.3361, allocations: 43.98 kB / 1.132 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3361, allocations: 0 / 1.132 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.3361, allocations: 15.98 kB / 1.132 GB, free: 3.043 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3361, allocations: 3.938 kB / 1.132 GB, free: 3.039 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3362, allocations: 4 kB / 1.132 GB, free: 3.035 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009031/0.3371, allocations: 0.6642 MB / 1.133 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.3373, allocations: 176.3 kB / 1.133 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.424e-05/0.3374, allocations: 12 kB / 1.133 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.3377, allocations: 11.98 kB / 1.133 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.3378, allocations: 27.91 kB / 1.133 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.3378, allocations: 15.98 kB / 1.133 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.000423/0.3382, allocations: 346.9 kB / 1.134 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3382, allocations: 0 / 1.134 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006899/0.3389, allocations: 191.8 kB / 1.134 GB, free: 1.555 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.001669/0.3406, allocations: 1.401 MB / 1.135 GB, free: 120 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005528/0.3412, allocations: 283.9 kB / 1.136 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.3412, allocations: 4 kB / 1.136 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.3415, allocations: 167.7 kB / 1.136 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.3431, allocations: 337.7 kB / 1.136 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00572/0.3489, allocations: 4.197 MB / 1.14 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3493, allocations: 0.8704 MB / 1.141 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0004458/0.3498, allocations: 120.7 kB / 1.141 GB, free: 9.984 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.3501, allocations: 191.4 kB / 1.141 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of SimCode: time 8.32e-07/0.3501, allocations: 0 / 1.141 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.3924, allocations: 16.98 MB / 1.158 GB, free: 9.082 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.002/9.394, allocations: 3.938 kB / 1.158 GB, free: 9.078 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