Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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_9_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_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001206/0.001206, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004824, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8016/0.8021, allocations: 142.3 MB / 0.9535 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.1884/0.9905, allocations: 140.3 MB / 1.091 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007152/0.9977, allocations: 5.26 MB / 1.096 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.9984, allocations: 11.94 kB / 1.096 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008958/0.9993, allocations: 199.1 kB / 1.096 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002077/1.001, allocations: 0.5647 MB / 1.096 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001223/1.003, allocations: 357.2 kB / 1.097 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007811/1.003, allocations: 428 kB / 1.097 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005554/1.004, allocations: 214.4 kB / 1.097 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00121/1.005, allocations: 430.7 kB / 1.098 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/1.006, allocations: 195.3 kB / 1.098 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/1.006, allocations: 16 kB / 1.098 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006438/1.006, allocations: 199.7 kB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001217/1.006, allocations: 95.72 kB / 1.098 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.361e-05/1.006, allocations: 85.52 kB / 1.098 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004468/1.007, allocations: 311.2 kB / 1.099 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/1.007, allocations: 4 kB / 1.099 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.284e-06/1.007, allocations: 0 / 1.099 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.953e-06/1.007, allocations: 0 / 1.099 GB, free: 11.12 MB / 0.8575 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.0009988/1.008, allocations: 0.5611 MB / 1.099 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.008, allocations: 8.031 kB / 1.099 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003221/1.008, allocations: 71.42 kB / 1.099 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/1.009, allocations: 281.6 kB / 1.1 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/1.009, allocations: 24.56 kB / 1.1 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/1.009, allocations: 24 kB / 1.1 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000553/1.009, allocations: 327.6 kB / 1.1 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/1.009, allocations: 0 / 1.1 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/1.009, allocations: 12 kB / 1.1 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/1.009, allocations: 8 kB / 1.1 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004951/1.01, allocations: 209.5 kB / 1.1 GB, free: 9.504 MB / 0.8575 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.001771/1.012, allocations: 1.547 MB / 1.102 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/1.012, allocations: 122.5 kB / 1.102 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004321/1.012, allocations: 145 kB / 1.102 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/1.013, allocations: 34.56 kB / 1.102 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/1.013, allocations: 0 / 1.102 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0008126/1.013, allocations: 290.9 kB / 1.102 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/1.013, allocations: 55.34 kB / 1.102 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/1.014, allocations: 308.5 kB / 1.103 GB, free: 6.828 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/1.014, allocations: 29.7 kB / 1.103 GB, free: 6.793 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/1.014, allocations: 192 kB / 1.103 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/1.014, allocations: 35.45 kB / 1.103 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/1.014, allocations: 4 kB / 1.103 GB, free: 6.562 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000181/1.014, allocations: 338.8 kB / 1.103 GB, free: 6.223 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/1.014, allocations: 59.95 kB / 1.103 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/1.015, allocations: 121.1 kB / 1.103 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/1.015, allocations: 79.86 kB / 1.103 GB, free: 5.949 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/1.015, allocations: 0 / 1.103 GB, free: 5.949 MB / 0.8575 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004161/1.015, allocations: 229.1 kB / 1.104 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/1.015, allocations: 9.031 kB / 1.104 GB, free: 5.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.015, allocations: 4 kB / 1.104 GB, free: 5.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/1.015, allocations: 0 / 1.104 GB, free: 5.707 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/1.015, allocations: 35.98 kB / 1.104 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/1.015, allocations: 0 / 1.104 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/1.016, allocations: 47.78 kB / 1.104 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/1.016, allocations: 8 kB / 1.104 GB, free: 5.617 MB / 0.8575 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 () * Number of clocked 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 0.0001548/1.016, allocations: 154.9 kB / 1.104 GB, free: 5.457 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.809e-05/1.016, allocations: 27.72 kB / 1.104 GB, free: 5.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004575/1.016, allocations: 220.3 kB / 1.104 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/1.016, allocations: 3.938 kB / 1.104 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/1.016, allocations: 0 / 1.104 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/1.016, allocations: 0 / 1.104 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/1.018, allocations: 0.6912 MB / 1.105 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/1.018, allocations: 0 / 1.105 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/1.018, allocations: 36.2 kB / 1.105 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/1.018, allocations: 4 kB / 1.105 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/1.018, allocations: 4 kB / 1.105 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.018, allocations: 7.922 kB / 1.105 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.018, allocations: 4.047 kB / 1.105 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005305/1.018, allocations: 431.6 kB / 1.105 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/1.018, allocations: 124.7 kB / 1.105 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.926e-05/1.018, allocations: 4.062 kB / 1.105 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/1.019, allocations: 23.98 kB / 1.105 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.287e-05/1.019, allocations: 19.88 kB / 1.105 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/1.019, allocations: 8 kB / 1.105 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002144/1.019, allocations: 219 kB / 1.106 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/1.019, allocations: 0 / 1.106 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003791/1.019, allocations: 79.84 kB / 1.106 GB, free: 3.391 MB / 0.8575 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 () * Number of clocked 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.0004048/1.02, allocations: 154 kB / 1.106 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004102/1.02, allocations: 169.2 kB / 1.106 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/1.02, allocations: 4 kB / 1.106 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000178/1.02, allocations: 84.33 kB / 1.106 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/1.021, allocations: 133.3 kB / 1.106 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/1.022, allocations: 0.6281 MB / 1.107 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/1.023, allocations: 0.7914 MB / 1.108 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002034/1.023, allocations: 62.88 kB / 1.108 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/1.023, allocations: 27.44 kB / 1.108 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of SimCode: time 4.31e-07/1.023, allocations: 0 / 1.108 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of Templates: time 0.00964/1.033, allocations: 4.687 MB / 1.112 GB, free: 12.67 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches