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.001289/0.001289, 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.001581/0.001581, allocations: 189.4 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.366/1.366, allocations: 222.9 MB / 239.8 MB, free: 4.594 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.6/2.6, allocations: 437 MB / 0.7099 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 67.89 kB / 0.8685 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6587/0.66, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02217/0.6822, allocations: 23.15 MB / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007062/0.6893, allocations: 5.129 MB / 1.044 GB, free: 6.402 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008457/0.6902, allocations: 23.81 kB / 1.044 GB, free: 6.379 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007735/0.6909, allocations: 230.6 kB / 1.044 GB, free: 6.152 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001848/0.6928, allocations: 0.7348 MB / 1.045 GB, free: 5.418 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001622/0.6945, allocations: 0.6709 MB / 1.046 GB, free: 4.75 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002029/0.6965, allocations: 2.167 MB / 1.048 GB, free: 2.574 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005836/0.6971, allocations: 423.1 kB / 1.048 GB, free: 2.156 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008419/0.698, allocations: 0.529 MB / 1.049 GB, free: 1.625 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005408/0.6985, allocations: 465.9 kB / 1.049 GB, free: 1.168 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.421e-05/0.6986, allocations: 31.94 kB / 1.049 GB, free: 1.137 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.6996, allocations: 459 kB / 1.05 GB, free: 0.6875 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.6998, allocations: 115.5 kB / 1.05 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000309/0.7001, allocations: 294.5 kB / 1.05 GB, free: 292 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.7012, allocations: 0.8919 MB / 1.051 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7012, allocations: 0 / 1.051 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.993e-06/0.7012, allocations: 4 kB / 1.051 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.716e-06/0.7012, allocations: 3.938 kB / 1.051 GB, free: 15.38 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.001385/0.7026, allocations: 0.8981 MB / 1.052 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.7027, allocations: 8.031 kB / 1.052 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.7029, allocations: 68.19 kB / 1.052 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008844/0.7038, allocations: 0.5533 MB / 1.053 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.7038, allocations: 36.94 kB / 1.053 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.7039, allocations: 36 kB / 1.053 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006604/0.7046, allocations: 436.7 kB / 1.053 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.7046, allocations: 0 / 1.053 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.952e-05/0.7046, allocations: 16 kB / 1.053 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/0.7047, allocations: 12 kB / 1.053 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005026/0.7052, allocations: 307.8 kB / 1.053 GB, free: 12.92 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.00246/0.7077, allocations: 1.907 MB / 1.055 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004821/0.7081, allocations: 268.3 kB / 1.055 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.7083, allocations: 124.8 kB / 1.056 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008293/0.7092, allocations: 0.8467 MB / 1.056 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.7092, allocations: 34.56 kB / 1.056 GB, free: 9.414 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.663e-06/0.7092, allocations: 0 / 1.056 GB, free: 9.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0006998/0.7099, allocations: 375 kB / 1.057 GB, free: 9.043 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.71, allocations: 59.34 kB / 1.057 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005182/0.7105, allocations: 470.1 kB / 1.057 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.7105, allocations: 29.7 kB / 1.057 GB, free: 8.469 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.7107, allocations: 260 kB / 1.058 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.154e-05/0.7108, allocations: 98.58 kB / 1.058 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.711, allocations: 77.92 kB / 1.058 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.7111, allocations: 354.8 kB / 1.058 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.7113, allocations: 100.6 kB / 1.058 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.7115, allocations: 164.1 kB / 1.058 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003904/0.7119, allocations: 286.6 kB / 1.059 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.7119, allocations: 0 / 1.059 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006764/0.7126, allocations: 369 kB / 1.059 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.7126, allocations: 8 kB / 1.059 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.7126, allocations: 0 / 1.059 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.7127, allocations: 4 kB / 1.059 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.7129, allocations: 75.84 kB / 1.059 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.713, allocations: 4 kB / 1.059 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003012/0.7133, allocations: 51.52 kB / 1.059 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.7133, allocations: 20.05 kB / 1.059 GB, free: 6.562 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.0002264/0.7135, allocations: 177.8 kB / 1.059 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-05/0.7136, allocations: 47.44 kB / 1.059 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008062/0.7145, allocations: 472.9 kB / 1.06 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.7145, allocations: 11.92 kB / 1.06 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.7145, allocations: 0 / 1.06 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005669/0.7151, allocations: 0.5684 MB / 1.06 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.7168, allocations: 1.148 MB / 1.061 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.7169, allocations: 4 kB / 1.061 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.7171, allocations: 47.91 kB / 1.062 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.7171, allocations: 8.188 kB / 1.062 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.7171, allocations: 15.92 kB / 1.062 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.7171, allocations: 4 kB / 1.062 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7171, allocations: 4 kB / 1.062 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008756/0.718, allocations: 0.6638 MB / 1.062 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.7182, allocations: 176.4 kB / 1.062 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.492e-05/0.7183, allocations: 4 kB / 1.062 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.7186, allocations: 19.98 kB / 1.062 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.7186, allocations: 31.91 kB / 1.062 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.7187, allocations: 19.92 kB / 1.062 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003697/0.7191, allocations: 338.9 kB / 1.063 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7191, allocations: 0 / 1.063 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006128/0.7197, allocations: 195.8 kB / 1.063 GB, free: 2.398 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.0006266/0.7203, allocations: 304.4 kB / 1.063 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000501/0.7208, allocations: 288.1 kB / 1.064 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.7208, allocations: 4 kB / 1.064 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.7211, allocations: 160.4 kB / 1.064 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.7226, allocations: 309.9 kB / 1.064 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.7244, allocations: 1.245 MB / 1.065 GB, free: 80 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.7248, allocations: 0.867 MB / 1.066 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003998/0.7252, allocations: 128.6 kB / 1.066 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.7253, allocations: 63.3 kB / 1.066 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of SimCode: time 1.082e-06/0.7254, allocations: 0 / 1.066 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.01896/0.7443, allocations: 11.55 MB / 1.077 GB, free: 3.617 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=480 -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