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.001712/0.001713, 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.001931/0.001931, allocations: 194.7 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.448/1.448, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.792/2.792, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 63.91 kB / 0.8692 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6451/0.6471, allocations: 151.6 MB / 1.017 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02777/0.6749, allocations: 23.24 MB / 1.04 GB, free: 11.21 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008286/0.6833, allocations: 5.081 MB / 1.045 GB, free: 6.113 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006516/0.6839, allocations: 31.81 kB / 1.045 GB, free: 6.082 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008015/0.6848, allocations: 278.1 kB / 1.045 GB, free: 5.809 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.6867, allocations: 0.7928 MB / 1.046 GB, free: 5.012 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.6886, allocations: 0.7542 MB / 1.047 GB, free: 4.262 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001904/0.6905, allocations: 1.606 MB / 1.048 GB, free: 2.648 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006791/0.6912, allocations: 491.5 kB / 1.049 GB, free: 2.164 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.6926, allocations: 0.6054 MB / 1.049 GB, free: 1.559 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006169/0.6932, allocations: 450 kB / 1.05 GB, free: 1.117 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.556e-05/0.6933, allocations: 51.94 kB / 1.05 GB, free: 1.066 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.6944, allocations: 491.1 kB / 1.05 GB, free: 0.5859 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.6946, allocations: 139.5 kB / 1.05 GB, free: 460 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.6949, allocations: 310.5 kB / 1.051 GB, free: 148 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.6963, allocations: 0.9037 MB / 1.052 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.6964, allocations: 4 kB / 1.052 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6964, allocations: 3.938 kB / 1.052 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.6964, allocations: 0 / 1.052 GB, free: 15.23 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.001491/0.6979, allocations: 0.8882 MB / 1.053 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.6979, allocations: 12.03 kB / 1.053 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002547/0.6982, allocations: 64.22 kB / 1.053 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.6992, allocations: 0.5377 MB / 1.053 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.6993, allocations: 36.94 kB / 1.053 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.184e-05/0.6994, allocations: 47.89 kB / 1.053 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007573/0.7001, allocations: 436.7 kB / 1.054 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.7002, allocations: 4 kB / 1.054 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.7002, allocations: 16 kB / 1.054 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.089e-05/0.7002, allocations: 8 kB / 1.054 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005484/0.7008, allocations: 307.8 kB / 1.054 GB, free: 12.79 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.002953/0.7037, allocations: 1.923 MB / 1.056 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006587/0.7044, allocations: 258.7 kB / 1.056 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.7047, allocations: 127.9 kB / 1.056 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001289/0.706, allocations: 0.8467 MB / 1.057 GB, free: 9.309 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.706, allocations: 42.5 kB / 1.057 GB, free: 9.258 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 3.056e-06/0.706, allocations: 3.938 kB / 1.057 GB, free: 9.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0009022/0.7069, allocations: 356.9 kB / 1.057 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.707, allocations: 63.33 kB / 1.057 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007655/0.7078, allocations: 474.1 kB / 1.058 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.7079, allocations: 37.7 kB / 1.058 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.7082, allocations: 260 kB / 1.058 GB, free: 8.051 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.7083, allocations: 94.72 kB / 1.058 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.7085, allocations: 73.92 kB / 1.058 GB, free: 7.879 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002564/0.7087, allocations: 358.8 kB / 1.059 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.7089, allocations: 92.61 kB / 1.059 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003114/0.7092, allocations: 180 kB / 1.059 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.7097, allocations: 275.2 kB / 1.059 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.7097, allocations: 0 / 1.059 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006784/0.7104, allocations: 372.7 kB / 1.06 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.7105, allocations: 5.25 kB / 1.06 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.7105, allocations: 4 kB / 1.06 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.7105, allocations: 4 kB / 1.06 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.7108, allocations: 76.06 kB / 1.06 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.7108, allocations: 7.938 kB / 1.06 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.7111, allocations: 39.52 kB / 1.06 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.7112, allocations: 16 kB / 1.06 GB, free: 6.418 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.0002391/0.7114, allocations: 177.8 kB / 1.06 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.7115, allocations: 47.44 kB / 1.06 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008735/0.7124, allocations: 469 kB / 1.06 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.7124, allocations: 11.94 kB / 1.06 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.7124, allocations: 7.938 kB / 1.06 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00068/0.7131, allocations: 0.5723 MB / 1.061 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.7151, allocations: 1.152 MB / 1.062 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.7151, allocations: 3.938 kB / 1.062 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.7154, allocations: 47.97 kB / 1.062 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.7154, allocations: 4 kB / 1.062 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.7154, allocations: 11.98 kB / 1.062 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.328e-06/0.7154, allocations: 7.938 kB / 1.062 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7154, allocations: 0 / 1.062 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009554/0.7164, allocations: 0.6647 MB / 1.063 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.7166, allocations: 176.3 kB / 1.063 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.21e-05/0.7167, allocations: 12 kB / 1.063 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.717, allocations: 11.98 kB / 1.063 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.717, allocations: 27.97 kB / 1.063 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.7171, allocations: 15.94 kB / 1.063 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004453/0.7175, allocations: 346.8 kB / 1.063 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7175, allocations: 0 / 1.063 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007004/0.7182, allocations: 195.8 kB / 1.064 GB, free: 2.254 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.0006902/0.7189, allocations: 304.9 kB / 1.064 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006234/0.7196, allocations: 307.9 kB / 1.064 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.7196, allocations: 4.438 kB / 1.064 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.7199, allocations: 167.1 kB / 1.064 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.7215, allocations: 343 kB / 1.065 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.7234, allocations: 1.075 MB / 1.066 GB, free: 52 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.724, allocations: 0.8627 MB / 1.067 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003953/0.7244, allocations: 128.6 kB / 1.067 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.7246, allocations: 55.42 kB / 1.067 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.7246, allocations: 0 / 1.067 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of Templates: time 0.02424/0.7488, allocations: 12.16 MB / 1.079 GB, free: 3.012 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