Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001797/0.001797, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002035/0.002035, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.511/1.511, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.829/2.829, allocations: 437 MB / 0.7099 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 68.08 kB / 0.8686 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6908/0.6928, allocations: 151.6 MB / 1.017 GB, free: 3.043 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02536/0.7182, allocations: 23.16 MB / 1.039 GB, free: 11.8 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008057/0.7263, allocations: 5.121 MB / 1.044 GB, free: 6.668 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007565/0.7271, allocations: 19.88 kB / 1.044 GB, free: 6.648 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007669/0.7278, allocations: 226.6 kB / 1.044 GB, free: 6.426 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001744/0.7296, allocations: 0.731 MB / 1.045 GB, free: 5.691 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.7314, allocations: 0.6866 MB / 1.046 GB, free: 5.012 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002328/0.7337, allocations: 2.163 MB / 1.048 GB, free: 2.84 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007396/0.7344, allocations: 411.3 kB / 1.048 GB, free: 2.434 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009036/0.7354, allocations: 0.5289 MB / 1.049 GB, free: 1.902 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005729/0.7359, allocations: 465.9 kB / 1.049 GB, free: 1.445 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.243e-05/0.736, allocations: 31.94 kB / 1.049 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.7371, allocations: 466.9 kB / 1.05 GB, free: 0.957 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.7372, allocations: 119.6 kB / 1.05 GB, free: 0.8398 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.7376, allocations: 286.5 kB / 1.05 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.7388, allocations: 0.9036 MB / 1.051 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.7388, allocations: 0 / 1.051 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.62e-07/0.7388, allocations: 4 kB / 1.051 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.7388, allocations: 0 / 1.051 GB, free: 15.65 MB / 0.8106 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.001529/0.7404, allocations: 0.8881 MB / 1.052 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.7404, allocations: 8.031 kB / 1.052 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.7407, allocations: 68.19 kB / 1.052 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.7418, allocations: 0.5611 MB / 1.053 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.7418, allocations: 32.94 kB / 1.053 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.7419, allocations: 40 kB / 1.053 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007361/0.7426, allocations: 440.6 kB / 1.053 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.7427, allocations: 0 / 1.053 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.093e-05/0.7427, allocations: 20 kB / 1.053 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.575e-05/0.7427, allocations: 11.98 kB / 1.053 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005419/0.7433, allocations: 303.8 kB / 1.053 GB, free: 13.18 MB / 0.8106 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.002885/0.7462, allocations: 1.919 MB / 1.055 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.7467, allocations: 251.9 kB / 1.055 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.7469, allocations: 124.7 kB / 1.056 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000957/0.7479, allocations: 0.8467 MB / 1.056 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.748, allocations: 42.55 kB / 1.056 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.893e-06/0.748, allocations: 0 / 1.056 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0007372/0.7487, allocations: 366.7 kB / 1.057 GB, free: 9.309 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.7488, allocations: 59.34 kB / 1.057 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000589/0.7494, allocations: 462.1 kB / 1.057 GB, free: 8.777 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.7494, allocations: 33.7 kB / 1.057 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.7496, allocations: 264 kB / 1.058 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.7497, allocations: 90.66 kB / 1.058 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.7499, allocations: 77.92 kB / 1.058 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.75, allocations: 358.8 kB / 1.058 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.7502, allocations: 96.55 kB / 1.058 GB, free: 7.852 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.7505, allocations: 168.1 kB / 1.058 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.751, allocations: 286.6 kB / 1.059 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.751, allocations: 0 / 1.059 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006282/0.7516, allocations: 372.8 kB / 1.059 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.7516, allocations: 4 kB / 1.059 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.7516, allocations: 8 kB / 1.059 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.7517, allocations: 0 / 1.059 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.752, allocations: 83.83 kB / 1.059 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.752, allocations: 3.938 kB / 1.059 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.7523, allocations: 47.75 kB / 1.059 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.736e-05/0.7523, allocations: 19.98 kB / 1.059 GB, free: 6.824 MB / 0.8106 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.0002198/0.7525, allocations: 174.4 kB / 1.059 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.711e-05/0.7526, allocations: 47.44 kB / 1.059 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008431/0.7535, allocations: 469 kB / 1.06 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.7535, allocations: 11.92 kB / 1.06 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.7535, allocations: 0 / 1.06 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006434/0.7542, allocations: 0.5723 MB / 1.06 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.7561, allocations: 1.156 MB / 1.062 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.7562, allocations: 4.188 kB / 1.062 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.7564, allocations: 43.98 kB / 1.062 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.7564, allocations: 4 kB / 1.062 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.7564, allocations: 11.98 kB / 1.062 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.7564, allocations: 3.938 kB / 1.062 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.7565, allocations: 4 kB / 1.062 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.7575, allocations: 0.6716 MB / 1.062 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.7577, allocations: 168.4 kB / 1.062 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.32e-05/0.7578, allocations: 8 kB / 1.062 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.7581, allocations: 19.98 kB / 1.062 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.7582, allocations: 28.05 kB / 1.062 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.7582, allocations: 27.92 kB / 1.062 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000443/0.7587, allocations: 334.9 kB / 1.063 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7587, allocations: 4 kB / 1.063 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006405/0.7593, allocations: 195.8 kB / 1.063 GB, free: 2.66 MB / 0.8106 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.0006914/0.76, allocations: 288.6 kB / 1.063 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005223/0.7606, allocations: 296.7 kB / 1.064 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.7606, allocations: 448 / 1.064 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.7608, allocations: 163.1 kB / 1.064 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.7625, allocations: 315.3 kB / 1.064 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.7644, allocations: 1.245 MB / 1.065 GB, free: 348 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.765, allocations: 0.863 MB / 1.066 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0004114/0.7654, allocations: 128.6 kB / 1.066 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.7656, allocations: 59.36 kB / 1.066 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.7656, allocations: 0 / 1.066 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of Templates: time 0.0208/0.7864, allocations: 11.56 MB / 1.078 GB, free: 3.883 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches