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.001424/0.001425, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001658/0.001658, allocations: 192.7 kB / 16.25 MB, free: 6.637 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.539/1.539, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.402/2.402, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7137/0.716, allocations: 140.4 MB / 0.9491 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02227/0.7383, allocations: 23.09 MB / 0.9716 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007617/0.7459, allocations: 5.057 MB / 0.9766 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007465/0.7467, allocations: 22.03 kB / 0.9766 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008311/0.7476, allocations: 241.7 kB / 0.9768 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001808/0.7494, allocations: 0.7345 MB / 0.9775 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.7511, allocations: 0.6966 MB / 0.9782 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00181/0.7529, allocations: 1.618 MB / 0.9798 GB, free: 208 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006886/0.7536, allocations: 488.7 kB / 0.9803 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.7551, allocations: 0.6184 MB / 0.9809 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000582/0.7557, allocations: 467.5 kB / 0.9813 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.238e-05/0.7558, allocations: 45.38 kB / 0.9814 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.7568, allocations: 496.2 kB / 0.9818 GB, free: 15 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.757, allocations: 144 kB / 0.982 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002979/0.7573, allocations: 311.4 kB / 0.9823 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.7584, allocations: 0.9193 MB / 0.9832 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.7584, allocations: 0 / 0.9832 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7585, allocations: 0 / 0.9832 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.7585, allocations: 1.406 kB / 0.9832 GB, free: 14.11 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.001277/0.7598, allocations: 0.8831 MB / 0.984 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.7598, allocations: 13.81 kB / 0.984 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.76, allocations: 62.53 kB / 0.9841 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008946/0.7609, allocations: 0.5595 MB / 0.9847 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.761, allocations: 27.75 kB / 0.9847 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.321e-05/0.761, allocations: 43.12 kB / 0.9847 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006973/0.7617, allocations: 439.2 kB / 0.9851 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.7618, allocations: 3.984 kB / 0.9851 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/0.7618, allocations: 17 kB / 0.9852 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.686e-05/0.7619, allocations: 9.562 kB / 0.9852 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005293/0.7624, allocations: 312.6 kB / 0.9855 GB, free: 12.38 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.002838/0.7652, allocations: 1.908 MB / 0.9873 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.7658, allocations: 258.7 kB / 0.9876 GB, free: 10.31 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.766, allocations: 128.7 kB / 0.9877 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008476/0.7668, allocations: 0.8506 MB / 0.9885 GB, free: 9.148 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.7669, allocations: 38.56 kB / 0.9886 GB, free: 9.102 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 2.325e-06/0.7669, allocations: 0 / 0.9886 GB, free: 9.102 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0007233/0.7676, allocations: 374.7 kB / 0.9889 GB, free: 8.73 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.7677, allocations: 59.41 kB / 0.989 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.7682, allocations: 466.1 kB / 0.9894 GB, free: 8.195 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.7683, allocations: 29.7 kB / 0.9895 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.7685, allocations: 264 kB / 0.9897 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.513e-05/0.7686, allocations: 94.64 kB / 0.9898 GB, free: 7.805 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.7687, allocations: 70.02 kB / 0.9899 GB, free: 7.73 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.7689, allocations: 358.8 kB / 0.9902 GB, free: 7.371 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.769, allocations: 96.61 kB / 0.9903 GB, free: 7.277 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.7693, allocations: 172 kB / 0.9905 GB, free: 7.086 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/0.7697, allocations: 282.7 kB / 0.9907 GB, free: 6.785 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.7697, allocations: 0 / 0.9907 GB, free: 6.785 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005992/0.7703, allocations: 368.7 kB / 0.9911 GB, free: 6.418 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.7703, allocations: 8 kB / 0.9911 GB, free: 6.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.7704, allocations: 0 / 0.9911 GB, free: 6.41 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.7704, allocations: 7.938 kB / 0.9911 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.7707, allocations: 76.12 kB / 0.9912 GB, free: 6.328 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.7707, allocations: 8 kB / 0.9912 GB, free: 6.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.7711, allocations: 47.52 kB / 0.9912 GB, free: 6.273 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.7711, allocations: 19.98 kB / 0.9912 GB, free: 6.254 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.000214/0.7713, allocations: 173.8 kB / 0.9914 GB, free: 6.074 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.154e-05/0.7714, allocations: 51.38 kB / 0.9915 GB, free: 6.023 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/0.7722, allocations: 476.9 kB / 0.9919 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.7723, allocations: 11.92 kB / 0.9919 GB, free: 5.535 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.7723, allocations: 0 / 0.9919 GB, free: 5.535 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005633/0.7728, allocations: 0.5651 MB / 0.9925 GB, free: 4.902 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.7748, allocations: 1.16 MB / 0.9936 GB, free: 3.648 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.7748, allocations: 4 kB / 0.9936 GB, free: 3.645 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.775, allocations: 47.91 kB / 0.9937 GB, free: 3.598 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.775, allocations: 4 kB / 0.9937 GB, free: 3.594 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.7751, allocations: 11.98 kB / 0.9937 GB, free: 3.582 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.7751, allocations: 4 kB / 0.9937 GB, free: 3.578 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.7751, allocations: 4 kB / 0.9937 GB, free: 3.574 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009122/0.776, allocations: 0.664 MB / 0.9943 GB, free: 2.875 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.7763, allocations: 172.4 kB / 0.9945 GB, free: 2.688 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.202e-05/0.7764, allocations: 12 kB / 0.9945 GB, free: 2.676 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.7767, allocations: 19.98 kB / 0.9945 GB, free: 2.656 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.7768, allocations: 31.84 kB / 0.9946 GB, free: 2.625 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.7768, allocations: 15.98 kB / 0.9946 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004629/0.7773, allocations: 338.9 kB / 0.9949 GB, free: 2.281 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7773, allocations: 4 kB / 0.9949 GB, free: 2.277 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008029/0.7781, allocations: 191.8 kB / 0.9951 GB, free: 2.09 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.0007059/0.7788, allocations: 300.2 kB / 0.9954 GB, free: 1.793 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006001/0.7794, allocations: 313.6 kB / 0.9957 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7794, allocations: 0 / 0.9957 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.7797, allocations: 163.8 kB / 0.9958 GB, free: 1.328 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.7812, allocations: 336 kB / 0.9961 GB, free: 1.012 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.7831, allocations: 1.251 MB / 0.9974 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.7835, allocations: 0.8627 MB / 0.9982 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003883/0.7839, allocations: 116.7 kB / 0.9983 GB, free: 14.71 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.784, allocations: 51.42 kB / 0.9984 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of SimCode: time 3.11e-07/0.784, allocations: 0 / 0.9984 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of Templates: time 0.02073/0.8047, allocations: 11.97 MB / 1.01 GB, free: 2.883 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