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.001044/0.001044, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008676/0.008676, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.316 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.441/2.441, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.0004629, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7723/0.7728, allocations: 142.4 MB / 0.955 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02202/0.7948, allocations: 22.5 MB / 0.977 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008169/0.803, allocations: 5.057 MB / 0.982 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008988/0.804, allocations: 20.16 kB / 0.982 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007561/0.8047, allocations: 226 kB / 0.9822 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002026/0.8068, allocations: 0.7354 MB / 0.9829 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0019/0.8087, allocations: 0.6791 MB / 0.9836 GB, free: 296 kB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002634/0.8113, allocations: 2.18 MB / 0.9857 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006376/0.812, allocations: 391.2 kB / 0.9861 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009465/0.8129, allocations: 0.5251 MB / 0.9866 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000584/0.8135, allocations: 441.4 kB / 0.987 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 5.796e-05/0.8136, allocations: 21.62 kB / 0.987 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.8149, allocations: 464.9 kB / 0.9875 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.8151, allocations: 111.5 kB / 0.9876 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003068/0.8154, allocations: 300.2 kB / 0.9879 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.8165, allocations: 0.8917 MB / 0.9887 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.8165, allocations: 0 / 0.9887 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8165, allocations: 0 / 0.9887 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.8165, allocations: 0 / 0.9887 GB, free: 12.72 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.001254/0.8178, allocations: 0.7831 MB / 0.9895 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.8178, allocations: 8.031 kB / 0.9895 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.818, allocations: 68.27 kB / 0.9896 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009017/0.8189, allocations: 0.5494 MB / 0.9901 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.819, allocations: 32.94 kB / 0.9901 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-05/0.8191, allocations: 43.91 kB / 0.9902 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006574/0.8197, allocations: 440.6 kB / 0.9906 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.8197, allocations: 4 kB / 0.9906 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.8198, allocations: 16 kB / 0.9906 GB, free: 10.68 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.8198, allocations: 15.88 kB / 0.9906 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.8203, allocations: 303.8 kB / 0.9909 GB, free: 10.36 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.002493/0.8228, allocations: 1.931 MB / 0.9928 GB, free: 8.305 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004845/0.8233, allocations: 254.8 kB / 0.9931 GB, free: 8.047 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.8235, allocations: 124.8 kB / 0.9932 GB, free: 7.922 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007838/0.8243, allocations: 0.8701 MB / 0.994 GB, free: 6.867 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.8243, allocations: 38.56 kB / 0.9941 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.8243, allocations: 0 / 0.9941 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0006506/0.825, allocations: 366.8 kB / 0.9944 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.8251, allocations: 59.34 kB / 0.9945 GB, free: 6.387 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005633/0.8256, allocations: 466.1 kB / 0.9949 GB, free: 5.922 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.8257, allocations: 29.7 kB / 0.9949 GB, free: 5.887 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.8259, allocations: 264 kB / 0.9952 GB, free: 5.625 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.587e-05/0.826, allocations: 98.64 kB / 0.9953 GB, free: 5.527 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/0.826, allocations: 29.7 kB / 0.9953 GB, free: 5.492 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.8262, allocations: 358.8 kB / 0.9957 GB, free: 5.133 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.8264, allocations: 100.6 kB / 0.9958 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.8266, allocations: 176 kB / 0.9959 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.827, allocations: 283.2 kB / 0.9962 GB, free: 4.539 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.827, allocations: 0 / 0.9962 GB, free: 4.539 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005273/0.8275, allocations: 356.9 kB / 0.9965 GB, free: 4.184 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.8275, allocations: 8 kB / 0.9965 GB, free: 4.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.8276, allocations: 0 / 0.9965 GB, free: 4.176 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.8276, allocations: 4 kB / 0.9965 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.8278, allocations: 80.05 kB / 0.9966 GB, free: 4.094 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.8279, allocations: 11.94 kB / 0.9966 GB, free: 4.082 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.8282, allocations: 47.52 kB / 0.9967 GB, free: 4.035 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.8282, allocations: 16 kB / 0.9967 GB, free: 4.02 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.0001907/0.8284, allocations: 177.8 kB / 0.9969 GB, free: 3.836 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.8285, allocations: 47.44 kB / 0.9969 GB, free: 3.789 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000764/0.8293, allocations: 472.9 kB / 0.9974 GB, free: 3.316 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.8293, allocations: 11.94 kB / 0.9974 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.8293, allocations: 4 kB / 0.9974 GB, free: 3.301 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005226/0.8298, allocations: 0.5683 MB / 0.9979 GB, free: 2.664 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.8315, allocations: 1.172 MB / 0.9991 GB, free: 1.398 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.8316, allocations: 0 / 0.9991 GB, free: 1.398 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.8318, allocations: 47.97 kB / 0.9991 GB, free: 1.352 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.8318, allocations: 4 kB / 0.9991 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.8318, allocations: 8.188 kB / 0.9991 GB, free: 1.34 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.8318, allocations: 11.94 kB / 0.9991 GB, free: 1.328 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8318, allocations: 0 / 0.9991 GB, free: 1.328 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007779/0.8326, allocations: 0.6755 MB / 0.9998 GB, free: 0.6172 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.8328, allocations: 180.3 kB / 1 GB, free: 432 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.637e-05/0.8329, allocations: 8 kB / 1 GB, free: 424 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.8332, allocations: 19.98 kB / 1 GB, free: 404 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.8333, allocations: 19.97 kB / 1 GB, free: 384 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.8333, allocations: 23.92 kB / 1 GB, free: 360 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003767/0.8337, allocations: 342.9 kB / 1 GB, free: 20 kB / 0.7481 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8337, allocations: 0 / 1 GB, free: 20 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006447/0.8343, allocations: 195.7 kB / 1.001 GB, free: 15.83 MB / 0.7637 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.0005713/0.8349, allocations: 300.1 kB / 1.001 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004671/0.8354, allocations: 285.7 kB / 1.001 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8354, allocations: 7.875 kB / 1.001 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.8356, allocations: 159.8 kB / 1.001 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.8373, allocations: 318.2 kB / 1.002 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.839, allocations: 1.322 MB / 1.003 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.8394, allocations: 0.8707 MB / 1.004 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003794/0.8397, allocations: 116.7 kB / 1.004 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.8399, allocations: 55.42 kB / 1.004 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of SimCode: time 4.81e-07/0.8399, allocations: 0 / 1.004 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of Templates: time 0.01933/0.8592, allocations: 11.49 MB / 1.015 GB, free: 1.031 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