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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007213/0.007213, allocations: 100.3 kB / 15.73 MB, free: 5.965 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.00148/0.00148, allocations: 198.7 kB / 16.68 MB, free: 5.887 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.205/2.205, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 71.89 kB / 0.9509 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8204/0.8217, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.2098/1.032, allocations: 167.5 MB / 1.252 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008662/1.04, allocations: 6.517 MB / 1.258 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006387/1.041, allocations: 23.88 kB / 1.258 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006907/1.042, allocations: 170.7 kB / 1.258 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002547/1.044, allocations: 0.8401 MB / 1.259 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001017/1.045, allocations: 338.7 kB / 1.259 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0009637/1.046, allocations: 0.7173 MB / 1.26 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005043/1.047, allocations: 275.3 kB / 1.26 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001292/1.048, allocations: 0.5486 MB / 1.261 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005043/1.049, allocations: 270.9 kB / 1.261 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.289e-05/1.049, allocations: 24 kB / 1.261 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007434/1.049, allocations: 343.2 kB / 1.261 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/1.05, allocations: 103.7 kB / 1.261 GB, free: 12 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002149/1.05, allocations: 163.2 kB / 1.262 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000833/1.051, allocations: 472.5 kB / 1.262 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.051, allocations: 0 / 1.262 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.665e-06/1.051, allocations: 0 / 1.262 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.81e-05/1.051, allocations: 0 / 1.262 GB, free: 11.38 MB / 0.9981 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.001128/1.052, allocations: 0.6249 MB / 1.263 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/1.052, allocations: 12.03 kB / 1.263 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003689/1.052, allocations: 63.52 kB / 1.263 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/1.053, allocations: 321.2 kB / 1.263 GB, free: 10.28 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/1.053, allocations: 20.5 kB / 1.263 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/1.053, allocations: 32 kB / 1.263 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006016/1.054, allocations: 311.7 kB / 1.263 GB, free: 9.895 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/1.054, allocations: 3.938 kB / 1.263 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/1.054, allocations: 12 kB / 1.263 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/1.054, allocations: 12 kB / 1.263 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/1.054, allocations: 201.6 kB / 1.264 GB, free: 9.668 MB / 0.9981 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.001762/1.056, allocations: 1.53 MB / 1.265 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/1.056, allocations: 122.5 kB / 1.265 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/1.056, allocations: 96.8 kB / 1.265 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000592/1.057, allocations: 299.2 kB / 1.266 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/1.057, allocations: 46.48 kB / 1.266 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 2.355e-06/1.057, allocations: 0 / 1.266 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0007807/1.058, allocations: 265.3 kB / 1.266 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/1.058, allocations: 55.41 kB / 1.266 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/1.058, allocations: 308.5 kB / 1.266 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/1.058, allocations: 29.7 kB / 1.266 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/1.058, allocations: 188 kB / 1.266 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/1.058, allocations: 47.3 kB / 1.266 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.59e-05/1.058, allocations: 37.7 kB / 1.267 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001147/1.059, allocations: 334.8 kB / 1.267 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/1.059, allocations: 59.95 kB / 1.267 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/1.059, allocations: 117 kB / 1.267 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/1.059, allocations: 180.9 kB / 1.267 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/1.059, allocations: 3.938 kB / 1.267 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004664/1.06, allocations: 213.1 kB / 1.267 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/1.06, allocations: 4 kB / 1.267 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/1.06, allocations: 0 / 1.267 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/1.06, allocations: 8.156 kB / 1.267 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/1.06, allocations: 43.91 kB / 1.267 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/1.06, allocations: 0 / 1.267 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/1.06, allocations: 19.84 kB / 1.267 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/1.06, allocations: 11.98 kB / 1.267 GB, free: 5.398 MB / 0.9981 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.0001551/1.061, allocations: 150.3 kB / 1.268 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.226e-05/1.061, allocations: 31.56 kB / 1.268 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004489/1.061, allocations: 208.3 kB / 1.268 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/1.061, allocations: 3.984 kB / 1.268 GB, free: 5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.061, allocations: 0 / 1.268 GB, free: 5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/1.061, allocations: 0 / 1.268 GB, free: 5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/1.062, allocations: 0.6911 MB / 1.269 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/1.062, allocations: 0 / 1.269 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/1.062, allocations: 31.98 kB / 1.269 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/1.062, allocations: 4 kB / 1.269 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/1.062, allocations: 4 kB / 1.269 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/1.062, allocations: 8.156 kB / 1.269 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.062, allocations: 4 kB / 1.269 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004562/1.063, allocations: 341.1 kB / 1.269 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/1.063, allocations: 116.7 kB / 1.269 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/1.063, allocations: 7.984 kB / 1.269 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/1.063, allocations: 15.94 kB / 1.269 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/1.063, allocations: 11.92 kB / 1.269 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/1.063, allocations: 8 kB / 1.269 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002062/1.063, allocations: 227 kB / 1.269 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.063, allocations: 0 / 1.269 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003942/1.064, allocations: 71.84 kB / 1.269 GB, free: 3.34 MB / 0.9981 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.000367/1.064, allocations: 156.1 kB / 1.269 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004232/1.065, allocations: 159.8 kB / 1.27 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.065, allocations: 0 / 1.27 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/1.065, allocations: 88.33 kB / 1.27 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008215/1.066, allocations: 138.3 kB / 1.27 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008681/1.067, allocations: 0.5372 MB / 1.27 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/1.067, allocations: 0.7872 MB / 1.271 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001994/1.067, allocations: 66.92 kB / 1.271 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.344e-05/1.067, allocations: 23.44 kB / 1.271 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of SimCode: time 3.6e-07/1.067, allocations: 0 / 1.271 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of Templates: time 0.01017/1.077, allocations: 5.159 MB / 1.276 GB, free: 12.24 MB / 1.014 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches