Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.FixedResistances.Examples.PressureDrop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop") translateModel(Buildings.Fluid.FixedResistances.Examples.PressureDrop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.01126/0.01126, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.515/1.515, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.803/2.803, allocations: 462.6 MB / 0.7364 GB, free: 328 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003454, allocations: 10.22 kB / 0.9028 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3051, allocations: 159.6 MB / 1.059 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PressureDrop): time 0.1884/0.4936, allocations: 157.2 MB / 1.212 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003513/0.4972, allocations: 1.699 MB / 1.214 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.4975, allocations: 11.94 kB / 1.214 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005934/0.4981, allocations: 131.2 kB / 1.214 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001304/0.4995, allocations: 486.1 kB / 1.214 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.5006, allocations: 381.5 kB / 1.215 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009343/0.5015, allocations: 0.7604 MB / 1.216 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.5019, allocations: 144.5 kB / 1.216 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006465/0.5025, allocations: 302.7 kB / 1.216 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.5028, allocations: 155.3 kB / 1.216 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.5028, allocations: 8 kB / 1.216 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.5041, allocations: 0.7717 MB / 1.217 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.5042, allocations: 75.67 kB / 1.217 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.5044, allocations: 137.1 kB / 1.217 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007826/0.5052, allocations: 0.5063 MB / 1.218 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.5052, allocations: 4 kB / 1.218 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.394e-06/0.5052, allocations: 0 / 1.218 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.5052, allocations: 0 / 1.218 GB, free: 2.188 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008951/0.5061, allocations: 0.5411 MB / 1.218 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.5062, allocations: 12.03 kB / 1.218 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003739/0.5066, allocations: 51.69 kB / 1.218 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.507, allocations: 285.3 kB / 1.218 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.507, allocations: 16 kB / 1.218 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.507, allocations: 12 kB / 1.218 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/0.5075, allocations: 196.1 kB / 1.219 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.5075, allocations: 0 / 1.219 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.5075, allocations: 8 kB / 1.219 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.5076, allocations: 8 kB / 1.219 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003548/0.5079, allocations: 137.4 kB / 1.219 GB, free: 0.8281 MB / 0.9669 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.001157/0.5091, allocations: 0.7931 MB / 1.22 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.5094, allocations: 90.47 kB / 1.22 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.5096, allocations: 80.88 kB / 1.22 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003581/0.5099, allocations: 190.2 kB / 1.22 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.51, allocations: 34.56 kB / 1.22 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.542e-06/0.51, allocations: 0 / 1.22 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.000733/0.5107, allocations: 237.1 kB / 1.22 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.5108, allocations: 51.41 kB / 1.22 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.5111, allocations: 271 kB / 1.22 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.5111, allocations: 29.69 kB / 1.221 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.5112, allocations: 147.9 kB / 1.221 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.5113, allocations: 35.56 kB / 1.221 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.5113, allocations: 13.72 kB / 1.221 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.5114, allocations: 334.8 kB / 1.221 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.5116, allocations: 47.89 kB / 1.221 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.5118, allocations: 101.1 kB / 1.221 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.5121, allocations: 131.3 kB / 1.221 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5121, allocations: 0 / 1.221 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004064/0.5125, allocations: 165.3 kB / 1.221 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.344e-05/0.5126, allocations: 127.7 kB / 1.222 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.5126, allocations: 0 / 1.222 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.5126, allocations: 3.938 kB / 1.222 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.5128, allocations: 27.92 kB / 1.222 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.5128, allocations: 0 / 1.222 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.513, allocations: 35.83 kB / 1.222 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.513, allocations: 8.047 kB / 1.222 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.513, allocations: 4 kB / 1.222 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002981/0.5134, allocations: 123.9 kB / 1.222 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.834e-06/0.5134, allocations: 0 / 1.222 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.919e-06/0.5134, allocations: 4 kB / 1.222 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.5135, allocations: 23.92 kB / 1.222 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5135, allocations: 4 kB / 1.222 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.5137, allocations: 27.86 kB / 1.222 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.5137, allocations: 8.562 kB / 1.222 GB, free: 13.5 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (10): * Single equations (assignments): 10 * 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.0001673/0.5139, allocations: 217.1 kB / 1.222 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.765e-05/0.514, allocations: 23.72 kB / 1.222 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004217/0.5144, allocations: 171.2 kB / 1.222 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.5144, allocations: 8 kB / 1.222 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.5144, allocations: 7.922 kB / 1.222 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.5144, allocations: 0 / 1.222 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009393/0.5154, allocations: 0.5975 MB / 1.223 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.5154, allocations: 4 kB / 1.223 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.5155, allocations: 23.98 kB / 1.223 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.5155, allocations: 4.219 kB / 1.223 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.5155, allocations: 4 kB / 1.223 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.5155, allocations: 4 kB / 1.223 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5155, allocations: 3.938 kB / 1.223 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/0.516, allocations: 313.1 kB / 1.223 GB, free: 12 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.721e-05/0.5161, allocations: 112.8 kB / 1.223 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.5161, allocations: 11.98 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.5163, allocations: 15.98 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.5164, allocations: 15.92 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.5164, allocations: 4 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001811/0.5166, allocations: 198 kB / 1.224 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5166, allocations: 4 kB / 1.224 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004903/0.5171, allocations: 95.83 kB / 1.224 GB, free: 11.53 MB / 0.9825 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 (10): * Single equations (assignments): 10 * 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.000409/0.5175, allocations: 167.8 kB / 1.224 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005355/0.5181, allocations: 179.9 kB / 1.224 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5181, allocations: 3.938 kB / 1.224 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.5183, allocations: 68.39 kB / 1.224 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009429/0.5192, allocations: 126 kB / 1.224 GB, free: 11 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007668/0.52, allocations: 0.5035 MB / 1.225 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.5204, allocations: 0.7638 MB / 1.225 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002259/0.5206, allocations: 70.88 kB / 1.225 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.5207, allocations: 19.44 kB / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of SimCode: time 3.61e-07/0.5207, allocations: 0 / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of Templates: time 0.008889/0.5296, allocations: 4.262 MB / 1.23 GB, free: 5.367 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_PressureDrop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PressureDrop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches