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.001358/0.001358, allocations: 104.6 kB / 16.35 MB, free: 5.828 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.001472/0.001472, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.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.252/2.252, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 65.42 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2956, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.8672/1.163, allocations: 167.5 MB / 1.115 GB, free: 5.309 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.007893/1.171, allocations: 6.54 MB / 1.121 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007669/1.172, allocations: 13.28 kB / 1.121 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006426/1.172, allocations: 172.5 kB / 1.121 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003081/1.175, allocations: 0.8405 MB / 1.122 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001233/1.177, allocations: 323.5 kB / 1.122 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001261/1.178, allocations: 0.7176 MB / 1.123 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005376/1.178, allocations: 280.6 kB / 1.123 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/1.18, allocations: 0.5495 MB / 1.124 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/1.18, allocations: 270.5 kB / 1.124 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.094e-05/1.18, allocations: 22.94 kB / 1.124 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009341/1.181, allocations: 340.7 kB / 1.125 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001589/1.182, allocations: 108.5 kB / 1.125 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000219/1.182, allocations: 162.8 kB / 1.125 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008629/1.183, allocations: 471.3 kB / 1.125 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/1.183, allocations: 3.75 kB / 1.125 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/1.183, allocations: 0 / 1.125 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.12e-05/1.183, allocations: 1.562 kB / 1.125 GB, free: 5.02 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.001182/1.184, allocations: 0.6204 MB / 1.126 GB, free: 20.55 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/1.184, allocations: 8.875 kB / 1.126 GB, free: 20.55 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003619/1.184, allocations: 62.48 kB / 1.126 GB, free: 20.53 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005814/1.185, allocations: 326.6 kB / 1.126 GB, free: 20.29 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/1.185, allocations: 21.12 kB / 1.126 GB, free: 20.29 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/1.185, allocations: 29.25 kB / 1.126 GB, free: 20.29 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000574/1.186, allocations: 318.7 kB / 1.127 GB, free: 20.2 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/1.186, allocations: 0 / 1.127 GB, free: 20.2 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/1.186, allocations: 10.66 kB / 1.127 GB, free: 20.2 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/1.186, allocations: 6.703 kB / 1.127 GB, free: 20.2 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/1.186, allocations: 206 kB / 1.127 GB, free: 20.19 MB / 0.8731 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.001764/1.188, allocations: 1.528 MB / 1.128 GB, free: 19.06 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/1.188, allocations: 121.5 kB / 1.128 GB, free: 19.03 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/1.188, allocations: 93.3 kB / 1.128 GB, free: 19.02 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006279/1.189, allocations: 304.1 kB / 1.129 GB, free: 18.74 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/1.189, allocations: 31.66 kB / 1.129 GB, free: 18.7 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/1.189, allocations: 0 / 1.129 GB, free: 18.7 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0008066/1.19, allocations: 281 kB / 1.129 GB, free: 18.64 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/1.19, allocations: 56.16 kB / 1.129 GB, free: 18.58 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/1.19, allocations: 312.7 kB / 1.129 GB, free: 18.48 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/1.19, allocations: 27.39 kB / 1.129 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/1.19, allocations: 187 kB / 1.13 GB, free: 18.33 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/1.19, allocations: 42.98 kB / 1.13 GB, free: 18.31 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.128e-05/1.191, allocations: 40.33 kB / 1.13 GB, free: 18.29 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001364/1.191, allocations: 340.7 kB / 1.13 GB, free: 17.97 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/1.191, allocations: 60.17 kB / 1.13 GB, free: 17.97 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/1.191, allocations: 109.9 kB / 1.13 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/1.191, allocations: 175.3 kB / 1.13 GB, free: 17.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.191, allocations: 0 / 1.13 GB, free: 17.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004208/1.192, allocations: 226.3 kB / 1.131 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/1.192, allocations: 5.25 kB / 1.131 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/1.192, allocations: 1.219 kB / 1.131 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/1.192, allocations: 2.094 kB / 1.131 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/1.192, allocations: 36.33 kB / 1.131 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/1.192, allocations: 2.094 kB / 1.131 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/1.192, allocations: 32.08 kB / 1.131 GB, free: 17.81 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/1.192, allocations: 9.562 kB / 1.131 GB, free: 17.81 MB / 0.8731 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001642/1.192, allocations: 156.3 kB / 1.131 GB, free: 17.69 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/1.193, allocations: 28.03 kB / 1.131 GB, free: 17.67 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/1.193, allocations: 206.8 kB / 1.131 GB, free: 17.63 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/1.193, allocations: 1.125 kB / 1.131 GB, free: 17.63 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/1.193, allocations: 0 / 1.131 GB, free: 17.63 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/1.193, allocations: 3.344 kB / 1.131 GB, free: 17.63 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/1.194, allocations: 0.678 MB / 1.132 GB, free: 17.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/1.194, allocations: 4.625 kB / 1.132 GB, free: 17.27 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/1.194, allocations: 32.27 kB / 1.132 GB, free: 17.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/1.194, allocations: 3.875 kB / 1.132 GB, free: 17.27 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/1.194, allocations: 6.281 kB / 1.132 GB, free: 17.27 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/1.194, allocations: 7 kB / 1.132 GB, free: 17.26 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.194, allocations: 2.312 kB / 1.132 GB, free: 17.26 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005248/1.195, allocations: 339.6 kB / 1.132 GB, free: 17.05 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/1.195, allocations: 113 kB / 1.132 GB, free: 16.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.667e-05/1.195, allocations: 7.281 kB / 1.132 GB, free: 16.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/1.195, allocations: 15.72 kB / 1.132 GB, free: 16.94 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/1.195, allocations: 14.39 kB / 1.132 GB, free: 16.94 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/1.195, allocations: 4.25 kB / 1.132 GB, free: 16.94 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002357/1.196, allocations: 227 kB / 1.132 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/1.196, allocations: 3.781 kB / 1.132 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004361/1.196, allocations: 68.72 kB / 1.133 GB, free: 16.85 MB / 0.8731 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 (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.0004139/1.196, allocations: 164.3 kB / 1.133 GB, free: 16.75 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000417/1.197, allocations: 162.2 kB / 1.133 GB, free: 16.74 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/1.197, allocations: 1.438 kB / 1.133 GB, free: 16.74 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001764/1.197, allocations: 86.28 kB / 1.133 GB, free: 16.74 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007847/1.198, allocations: 151.7 kB / 1.133 GB, free: 16.72 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008977/1.199, allocations: 0.542 MB / 1.134 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/1.199, allocations: 0.7784 MB / 1.134 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002102/1.199, allocations: 69.48 kB / 1.134 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.217e-05/1.2, allocations: 23.84 kB / 1.134 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of SimCode: time 2.114e-06/1.2, allocations: 0 / 1.134 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.01094/1.21, allocations: 5.108 MB / 1.139 GB, free: 15.38 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches