Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senH.h_out|senH_flow.H_flow|cheEqu.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senH.h_out|senH_flow.H_flow|cheEqu.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.415/2.415, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 184.8 kB / 491.2 MB, free: 1.551 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.738/1.738, allocations: 221.5 MB / 0.7868 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 91.61 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.849e-05/1.85e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.291, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.205/5.496, allocations: 1.867 GB / 3.08 GB, free: 435.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/5.496, allocations: 86.48 kB / 3.08 GB, free: 435.5 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.5741/6.07, allocations: 296.9 MB / 3.37 GB, free: 160.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.593e-06/6.07, allocations: 4 kB / 3.37 GB, free: 160.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 4.372e-05/6.07, allocations: 8 kB / 3.37 GB, free: 160.6 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001421/6.072, allocations: 0.647 MB / 3.37 GB, free: 159.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/6.072, allocations: 8.031 kB / 3.37 GB, free: 159.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/6.072, allocations: 55.59 kB / 3.37 GB, free: 159.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/6.073, allocations: 325.9 kB / 3.371 GB, free: 159.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/6.073, allocations: 8 kB / 3.371 GB, free: 159.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/6.073, allocations: 23.89 kB / 3.371 GB, free: 159.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002845/6.073, allocations: 137.1 kB / 3.371 GB, free: 159.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/6.074, allocations: 262.6 kB / 3.371 GB, free: 159 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/6.074, allocations: 0 / 3.371 GB, free: 159 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/6.074, allocations: 0 / 3.371 GB, free: 159 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/6.074, allocations: 8 kB / 3.371 GB, free: 159 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.001375/6.075, allocations: 1.452 MB / 3.373 GB, free: 157.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/6.075, allocations: 90.5 kB / 3.373 GB, free: 157.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.461e-05/6.075, allocations: 68.77 kB / 3.373 GB, free: 157.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004881/6.076, allocations: 299.3 kB / 3.373 GB, free: 156.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/6.076, allocations: 34.56 kB / 3.373 GB, free: 156.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/6.076, allocations: 4 kB / 3.373 GB, free: 156.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=13): time 0.0006209/6.076, allocations: 189.6 kB / 3.373 GB, free: 156.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/6.077, allocations: 55.41 kB / 3.373 GB, free: 156.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/6.077, allocations: 186.1 kB / 3.373 GB, free: 156.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/6.077, allocations: 25.7 kB / 3.374 GB, free: 156.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/6.077, allocations: 196 kB / 3.374 GB, free: 156.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 2.966e-05/6.077, allocations: 39.36 kB / 3.374 GB, free: 156.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-06/6.077, allocations: 0 / 3.374 GB, free: 156.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.393e-05/6.077, allocations: 338.8 kB / 3.374 GB, free: 155.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.262e-05/6.077, allocations: 39.98 kB / 3.374 GB, free: 155.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.986e-05/6.077, allocations: 98.8 kB / 3.374 GB, free: 155.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/6.077, allocations: 83.92 kB / 3.374 GB, free: 155.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/6.077, allocations: 0 / 3.374 GB, free: 155.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003206/6.078, allocations: 205.1 kB / 3.374 GB, free: 155.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/6.078, allocations: 9.562 kB / 3.374 GB, free: 155.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/6.078, allocations: 4 kB / 3.374 GB, free: 155.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/6.078, allocations: 4 kB / 3.374 GB, free: 155.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/6.078, allocations: 36.14 kB / 3.375 GB, free: 155.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/6.078, allocations: 0 / 3.375 GB, free: 155.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/6.078, allocations: 31.81 kB / 3.375 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/6.078, allocations: 12 kB / 3.375 GB, free: 155.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.095e-05/6.078, allocations: 108.9 kB / 3.375 GB, free: 155.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.143e-05/6.078, allocations: 27.67 kB / 3.375 GB, free: 155.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/6.079, allocations: 186 kB / 3.375 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/6.079, allocations: 11.92 kB / 3.375 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/6.079, allocations: 0 / 3.375 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/6.079, allocations: 3.984 kB / 3.375 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007417/6.079, allocations: 0.6099 MB / 3.375 GB, free: 154.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/6.079, allocations: 4 kB / 3.375 GB, free: 154.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/6.08, allocations: 35.92 kB / 3.376 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/6.08, allocations: 4 kB / 3.376 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/6.08, allocations: 224 / 3.376 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/6.08, allocations: 11.98 kB / 3.376 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/6.08, allocations: 4 kB / 3.376 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/6.08, allocations: 401 kB / 3.376 GB, free: 153.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 8.444e-05/6.08, allocations: 112.8 kB / 3.376 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/6.08, allocations: 8 kB / 3.376 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/6.08, allocations: 19.97 kB / 3.376 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/6.08, allocations: 19.81 kB / 3.376 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/6.08, allocations: 8.062 kB / 3.376 GB, free: 153.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 9.38e-05/6.08, allocations: 158 kB / 3.376 GB, free: 153.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.51e-07/6.08, allocations: 0 / 3.376 GB, free: 153.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0006494/6.081, allocations: 151.8 kB / 3.376 GB, free: 153.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002074/6.083, allocations: 1.332 MB / 3.378 GB, free: 151.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002258/6.083, allocations: 115.8 kB / 3.378 GB, free: 151.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/6.083, allocations: 0 / 3.378 GB, free: 151.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 9.409e-05/6.084, allocations: 59.92 kB / 3.378 GB, free: 151.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005741/6.084, allocations: 82.3 kB / 3.378 GB, free: 151.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007029/6.085, allocations: 351.9 kB / 3.378 GB, free: 151.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/6.085, allocations: 0.7867 MB / 3.379 GB, free: 150.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0001967/6.085, allocations: 50.16 kB / 3.379 GB, free: 150.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.592e-05/6.085, allocations: 23.42 kB / 3.379 GB, free: 150.4 MB / 1.151 GB Notification: Performance of SimCode: time 5.41e-07/6.085, allocations: 0 / 3.379 GB, free: 150.4 MB / 1.151 GB Notification: Performance of Templates: time 0.01761/6.103, allocations: 10.11 MB / 3.389 GB, free: 140.3 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches