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.001516/0.001516, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001741/0.001742, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.436/2.436, allocations: 390.2 MB / 0.6647 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.748/0.7492, allocations: 140.4 MB / 0.9496 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02289/0.7722, allocations: 23.23 MB / 0.9723 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009384/0.7816, allocations: 5.099 MB / 0.9772 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.7832, allocations: 25.62 kB / 0.9773 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.7843, allocations: 279.8 kB / 0.9775 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.7877, allocations: 0.789 MB / 0.9783 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002369/0.79, allocations: 0.7572 MB / 0.979 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003052/0.7931, allocations: 1.606 MB / 0.9806 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009672/0.7941, allocations: 489.7 kB / 0.9811 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001871/0.796, allocations: 0.6161 MB / 0.9817 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006626/0.7967, allocations: 450.2 kB / 0.9821 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 8.387e-05/0.7967, allocations: 46.03 kB / 0.9822 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.7981, allocations: 483.2 kB / 0.9826 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.7983, allocations: 143.6 kB / 0.9827 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.7986, allocations: 306.5 kB / 0.983 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.8002, allocations: 0.9125 MB / 0.9839 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.8002, allocations: 4 kB / 0.9839 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.432e-06/0.8002, allocations: 0 / 0.9839 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.277e-05/0.8002, allocations: 4 kB / 0.9839 GB, free: 13.88 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.001706/0.8019, allocations: 0.8805 MB / 0.9848 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.802, allocations: 13.91 kB / 0.9848 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002637/0.8023, allocations: 62.97 kB / 0.9849 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009742/0.8032, allocations: 0.5425 MB / 0.9854 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.8033, allocations: 36.69 kB / 0.9854 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.8034, allocations: 42.09 kB / 0.9855 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008063/0.8042, allocations: 431.1 kB / 0.9859 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.8042, allocations: 5.312 kB / 0.9859 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.099e-05/0.8043, allocations: 16.41 kB / 0.9859 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.8043, allocations: 12.69 kB / 0.9859 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005953/0.8049, allocations: 311.9 kB / 0.9862 GB, free: 12.14 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.002974/0.8079, allocations: 1.919 MB / 0.9881 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/0.8084, allocations: 262.7 kB / 0.9883 GB, free: 9.828 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/0.8087, allocations: 124.8 kB / 0.9885 GB, free: 9.703 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000997/0.8097, allocations: 0.8506 MB / 0.9893 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.8098, allocations: 38.56 kB / 0.9893 GB, free: 8.621 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.674e-06/0.8098, allocations: 0 / 0.9893 GB, free: 8.621 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0007844/0.8106, allocations: 366.8 kB / 0.9897 GB, free: 8.258 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.8107, allocations: 59.34 kB / 0.9897 GB, free: 8.188 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005455/0.8112, allocations: 478 kB / 0.9902 GB, free: 7.711 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.8113, allocations: 33.7 kB / 0.9902 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.8115, allocations: 260 kB / 0.9905 GB, free: 7.414 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.471e-05/0.8116, allocations: 98.64 kB / 0.9906 GB, free: 7.316 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.8117, allocations: 70.02 kB / 0.9906 GB, free: 7.242 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.8118, allocations: 354.8 kB / 0.991 GB, free: 6.887 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.812, allocations: 96.59 kB / 0.9911 GB, free: 6.793 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.8123, allocations: 172 kB / 0.9912 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/0.8127, allocations: 279.2 kB / 0.9915 GB, free: 6.305 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.8127, allocations: 4 kB / 0.9915 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005738/0.8133, allocations: 364.8 kB / 0.9918 GB, free: 5.938 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.8133, allocations: 7.984 kB / 0.9919 GB, free: 5.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.8133, allocations: 7.938 kB / 0.9919 GB, free: 5.922 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.8133, allocations: 4 kB / 0.9919 GB, free: 5.918 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/0.8136, allocations: 71.89 kB / 0.9919 GB, free: 5.848 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.8136, allocations: 8.219 kB / 0.9919 GB, free: 5.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.8139, allocations: 47.59 kB / 0.992 GB, free: 5.793 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.814, allocations: 12 kB / 0.992 GB, free: 5.781 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.0002031/0.8142, allocations: 177.8 kB / 0.9922 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.905e-05/0.8143, allocations: 51.34 kB / 0.9922 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008339/0.8151, allocations: 477.2 kB / 0.9927 GB, free: 5.07 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.8152, allocations: 11.88 kB / 0.9927 GB, free: 5.059 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.8152, allocations: 0 / 0.9927 GB, free: 5.059 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005888/0.8158, allocations: 0.5686 MB / 0.9932 GB, free: 4.422 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.8176, allocations: 1.16 MB / 0.9944 GB, free: 3.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.8176, allocations: 192 / 0.9944 GB, free: 3.168 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.8179, allocations: 55.91 kB / 0.9944 GB, free: 3.113 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.8179, allocations: 4 kB / 0.9944 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.8179, allocations: 8 kB / 0.9944 GB, free: 3.102 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.8179, allocations: 7.984 kB / 0.9944 GB, free: 3.094 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.8179, allocations: 0 / 0.9944 GB, free: 3.094 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008613/0.8188, allocations: 0.6678 MB / 0.9951 GB, free: 2.391 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001983/0.819, allocations: 168.5 kB / 0.9953 GB, free: 2.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.621e-05/0.8191, allocations: 8 kB / 0.9953 GB, free: 2.199 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.8194, allocations: 11.91 kB / 0.9953 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.8195, allocations: 27.97 kB / 0.9953 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.8195, allocations: 23.92 kB / 0.9953 GB, free: 2.137 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004032/0.8199, allocations: 346.8 kB / 0.9957 GB, free: 1.801 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8199, allocations: 0 / 0.9957 GB, free: 1.801 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007818/0.8207, allocations: 199.8 kB / 0.9958 GB, free: 1.605 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.0008102/0.8215, allocations: 307.5 kB / 0.9961 GB, free: 1.301 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006163/0.8222, allocations: 301.7 kB / 0.9964 GB, free: 1.008 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/0.8222, allocations: 7.938 kB / 0.9964 GB, free: 1 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.8224, allocations: 164.5 kB / 0.9966 GB, free: 0.8398 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.8242, allocations: 338.2 kB / 0.9969 GB, free: 0.5195 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.826, allocations: 1.071 MB / 0.998 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.8266, allocations: 0.8627 MB / 0.9988 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000506/0.8271, allocations: 116.7 kB / 0.9989 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.8273, allocations: 63.36 kB / 0.999 GB, free: 14.33 MB / 0.7637 GB Notification: Performance of SimCode: time 4.81e-07/0.8273, allocations: 0 / 0.999 GB, free: 14.33 MB / 0.7637 GB Notification: Performance of Templates: time 0.0215/0.8488, allocations: 12.15 MB / 1.011 GB, free: 2.367 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