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: translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001672/0.001672, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.381/1.381, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.383/2.383, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.89 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7729/0.7743, allocations: 140.4 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02193/0.7963, allocations: 23.14 MB / 0.9715 GB, free: 6.582 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009244/0.8056, allocations: 5.112 MB / 0.9765 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.8069, allocations: 30.31 kB / 0.9765 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.808, allocations: 222 kB / 0.9768 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002461/0.8106, allocations: 0.7357 MB / 0.9775 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002032/0.8126, allocations: 0.6763 MB / 0.9781 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002591/0.8152, allocations: 2.174 MB / 0.9803 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007696/0.816, allocations: 420 kB / 0.9807 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.8172, allocations: 0.5213 MB / 0.9812 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008109/0.818, allocations: 464.5 kB / 0.9816 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.8181, allocations: 26.69 kB / 0.9816 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001324/0.8195, allocations: 467.6 kB / 0.9821 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.8197, allocations: 119.7 kB / 0.9822 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005887/0.8203, allocations: 287.6 kB / 0.9825 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.822, allocations: 0.8959 MB / 0.9833 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.822, allocations: 1.406 kB / 0.9833 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.002e-06/0.822, allocations: 0 / 0.9833 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.596e-05/0.8221, allocations: 0 / 0.9833 GB, free: 14.06 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.001884/0.824, allocations: 0.8931 MB / 0.9842 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.824, allocations: 9.156 kB / 0.9842 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002769/0.8243, allocations: 66.81 kB / 0.9843 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.8254, allocations: 0.5547 MB / 0.9848 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.8255, allocations: 36.78 kB / 0.9849 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.143e-05/0.8256, allocations: 47.06 kB / 0.9849 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008448/0.8264, allocations: 438.5 kB / 0.9853 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.8264, allocations: 1.562 kB / 0.9853 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.8265, allocations: 15.81 kB / 0.9853 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.8265, allocations: 10.47 kB / 0.9854 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005547/0.8271, allocations: 303.6 kB / 0.9856 GB, free: 12.33 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.002934/0.83, allocations: 1.911 MB / 0.9875 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000526/0.8306, allocations: 264.2 kB / 0.9878 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.8308, allocations: 124.8 kB / 0.9879 GB, free: 9.906 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008218/0.8316, allocations: 0.8467 MB / 0.9887 GB, free: 8.875 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.8316, allocations: 34.56 kB / 0.9887 GB, free: 8.832 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.8316, allocations: 0 / 0.9887 GB, free: 8.832 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0007131/0.8324, allocations: 378.7 kB / 0.9891 GB, free: 8.457 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.8324, allocations: 63.34 kB / 0.9892 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005614/0.833, allocations: 462.1 kB / 0.9896 GB, free: 7.922 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.833, allocations: 33.7 kB / 0.9896 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.8332, allocations: 264 kB / 0.9899 GB, free: 7.621 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/0.8333, allocations: 90.66 kB / 0.99 GB, free: 7.531 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.8334, allocations: 70.02 kB / 0.99 GB, free: 7.457 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.8336, allocations: 358.8 kB / 0.9904 GB, free: 7.098 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.8337, allocations: 96.55 kB / 0.9905 GB, free: 7.004 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.834, allocations: 180 kB / 0.9906 GB, free: 6.805 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/0.8344, allocations: 275.2 kB / 0.9909 GB, free: 6.512 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.8344, allocations: 0 / 0.9909 GB, free: 6.512 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005832/0.835, allocations: 368.7 kB / 0.9913 GB, free: 6.145 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.835, allocations: 4.219 kB / 0.9913 GB, free: 6.141 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.835, allocations: 8 kB / 0.9913 GB, free: 6.133 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.835, allocations: 4 kB / 0.9913 GB, free: 6.129 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.8353, allocations: 75.84 kB / 0.9913 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.8353, allocations: 4 kB / 0.9914 GB, free: 6.051 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.8357, allocations: 47.45 kB / 0.9914 GB, free: 6.004 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.8357, allocations: 19.98 kB / 0.9914 GB, free: 5.984 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.0001939/0.8359, allocations: 181.7 kB / 0.9916 GB, free: 5.797 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-05/0.836, allocations: 47.44 kB / 0.9916 GB, free: 5.75 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000812/0.8368, allocations: 473 kB / 0.9921 GB, free: 5.281 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.8369, allocations: 15.92 kB / 0.9921 GB, free: 5.266 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.8369, allocations: 0 / 0.9921 GB, free: 5.266 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005444/0.8374, allocations: 0.5606 MB / 0.9926 GB, free: 4.637 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.8393, allocations: 1.164 MB / 0.9938 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.8393, allocations: 48 / 0.9938 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.8395, allocations: 59.89 kB / 0.9938 GB, free: 3.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.8395, allocations: 4 kB / 0.9938 GB, free: 3.316 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.8396, allocations: 12.17 kB / 0.9939 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.8396, allocations: 8 kB / 0.9939 GB, free: 3.297 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8396, allocations: 3.938 kB / 0.9939 GB, free: 3.293 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009415/0.8405, allocations: 0.6677 MB / 0.9945 GB, free: 2.59 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.8408, allocations: 172.4 kB / 0.9947 GB, free: 2.402 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.534e-05/0.8409, allocations: 8 kB / 0.9947 GB, free: 2.395 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003229/0.8413, allocations: 15.98 kB / 0.9947 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.8413, allocations: 23.91 kB / 0.9947 GB, free: 2.355 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.8414, allocations: 27.92 kB / 0.9948 GB, free: 2.328 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004166/0.8418, allocations: 342.9 kB / 0.9951 GB, free: 1.996 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8418, allocations: 0 / 0.9951 GB, free: 1.996 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006972/0.8425, allocations: 191.8 kB / 0.9953 GB, free: 1.809 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.0006653/0.8432, allocations: 297.8 kB / 0.9956 GB, free: 1.516 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004989/0.8437, allocations: 281.7 kB / 0.9958 GB, free: 1.242 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.8437, allocations: 0 / 0.9958 GB, free: 1.242 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.8439, allocations: 167.7 kB / 0.996 GB, free: 1.078 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.8455, allocations: 318.6 kB / 0.9963 GB, free: 0.7695 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.8473, allocations: 1.245 MB / 0.9975 GB, free: 15.48 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.8478, allocations: 0.8669 MB / 0.9983 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000426/0.8483, allocations: 124.6 kB / 0.9985 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.8484, allocations: 55.42 kB / 0.9985 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of SimCode: time 3.61e-07/0.8484, allocations: 4 kB / 0.9985 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of Templates: time 0.02073/0.8691, allocations: 11.54 MB / 1.01 GB, free: 3.039 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (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 & ./Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches