Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.FixedResistances.Examples.PressureDrop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow",fileNamePrefix="Buildings_9_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_9_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.007721/0.007721, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.001328/0.001328, allocations: 186.5 kB / 16.67 MB, free: 5.969 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.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.702/2.702, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 68.2 kB / 0.9508 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3654, allocations: 140.4 MB / 1.088 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PressureDrop): time 0.2095/0.5749, allocations: 161.5 MB / 1.246 GB, free: 15.4 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003841/0.5788, allocations: 1.716 MB / 1.247 GB, free: 13.68 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005276/0.5794, allocations: 11.94 kB / 1.247 GB, free: 13.67 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000725/0.5801, allocations: 162.9 kB / 1.247 GB, free: 13.51 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001663/0.5819, allocations: 0.5094 MB / 1.248 GB, free: 13 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.5833, allocations: 417.4 kB / 1.248 GB, free: 12.6 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000864/0.5842, allocations: 0.5732 MB / 1.249 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.5846, allocations: 176.5 kB / 1.249 GB, free: 11.85 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006858/0.5853, allocations: 322.7 kB / 1.249 GB, free: 11.53 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.5855, allocations: 155.3 kB / 1.25 GB, free: 11.38 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.02e-05/0.5855, allocations: 12 kB / 1.25 GB, free: 11.37 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.5868, allocations: 0.6898 MB / 1.25 GB, free: 10.68 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.5869, allocations: 83.72 kB / 1.25 GB, free: 10.59 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.5871, allocations: 119.3 kB / 1.25 GB, free: 10.48 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0007811/0.5878, allocations: 0.4908 MB / 1.251 GB, free: 9.984 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.5879, allocations: 0 / 1.251 GB, free: 9.984 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.864e-06/0.5879, allocations: 0 / 1.251 GB, free: 9.984 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.5879, allocations: 0 / 1.251 GB, free: 9.984 MB / 1.014 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.000902/0.5888, allocations: 0.5799 MB / 1.251 GB, free: 9.355 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.5888, allocations: 8.031 kB / 1.251 GB, free: 9.348 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003583/0.5892, allocations: 59.69 kB / 1.252 GB, free: 9.289 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005101/0.5897, allocations: 305.2 kB / 1.252 GB, free: 8.953 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.5898, allocations: 15.98 kB / 1.252 GB, free: 8.938 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.5898, allocations: 12 kB / 1.252 GB, free: 8.926 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/0.5902, allocations: 200.1 kB / 1.252 GB, free: 8.715 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.5902, allocations: 0 / 1.252 GB, free: 8.715 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.5902, allocations: 4 kB / 1.252 GB, free: 8.711 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.5902, allocations: 7.938 kB / 1.252 GB, free: 8.703 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003198/0.5906, allocations: 123.9 kB / 1.252 GB, free: 8.582 MB / 1.014 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.001034/0.5916, allocations: 0.7807 MB / 1.253 GB, free: 7.73 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.5919, allocations: 86.59 kB / 1.253 GB, free: 7.637 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.592, allocations: 76.8 kB / 1.253 GB, free: 7.559 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002884/0.5923, allocations: 190.2 kB / 1.253 GB, free: 7.336 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.5924, allocations: 34.5 kB / 1.253 GB, free: 7.293 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 3.025e-06/0.5924, allocations: 4 kB / 1.253 GB, free: 7.289 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0006777/0.5931, allocations: 221.1 kB / 1.254 GB, free: 7.066 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.5931, allocations: 51.41 kB / 1.254 GB, free: 7.004 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.5934, allocations: 271 kB / 1.254 GB, free: 6.734 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.5934, allocations: 29.7 kB / 1.254 GB, free: 6.699 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.5935, allocations: 144 kB / 1.254 GB, free: 6.555 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.5935, allocations: 35.55 kB / 1.254 GB, free: 6.52 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.5936, allocations: 29.62 kB / 1.254 GB, free: 6.484 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.5937, allocations: 334.8 kB / 1.254 GB, free: 6.148 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.5939, allocations: 48.81 kB / 1.254 GB, free: 6.098 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.594, allocations: 93.11 kB / 1.255 GB, free: 5.988 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.5943, allocations: 127.3 kB / 1.255 GB, free: 5.852 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.5943, allocations: 4 kB / 1.255 GB, free: 5.848 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003477/0.5947, allocations: 157.3 kB / 1.255 GB, free: 5.688 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.5947, allocations: 4 kB / 1.255 GB, free: 5.684 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.5947, allocations: 4 kB / 1.255 GB, free: 5.68 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5947, allocations: 3.938 kB / 1.255 GB, free: 5.676 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.5949, allocations: 19.98 kB / 1.255 GB, free: 5.656 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.5949, allocations: 7.984 kB / 1.255 GB, free: 5.648 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.595, allocations: 19.83 kB / 1.255 GB, free: 5.629 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.5951, allocations: 4.562 kB / 1.255 GB, free: 5.625 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001898/0.5953, allocations: 144.1 kB / 1.255 GB, free: 5.48 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000154/0.5954, allocations: 105 kB / 1.255 GB, free: 5.359 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002392/0.5957, allocations: 115.3 kB / 1.255 GB, free: 5.234 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.5957, allocations: 4 kB / 1.255 GB, free: 5.23 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0003054/0.596, allocations: 153.5 kB / 1.255 GB, free: 5.074 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.596, allocations: 8 kB / 1.255 GB, free: 5.066 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.596, allocations: 7.969 kB / 1.255 GB, free: 5.059 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-06/0.596, allocations: 0 / 1.255 GB, free: 5.059 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.5961, allocations: 27.92 kB / 1.255 GB, free: 5.031 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.5962, allocations: 7.938 kB / 1.255 GB, free: 5.023 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.5963, allocations: 16.02 kB / 1.255 GB, free: 5.008 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.5963, allocations: 4 kB / 1.255 GB, free: 5.004 MB / 1.014 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.0001201/0.5965, allocations: 192.2 kB / 1.256 GB, free: 4.809 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.5965, allocations: 23.72 kB / 1.256 GB, free: 4.785 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.5969, allocations: 163.2 kB / 1.256 GB, free: 4.613 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.5969, allocations: 3.938 kB / 1.256 GB, free: 4.609 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.5969, allocations: 0 / 1.256 GB, free: 4.609 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.5969, allocations: 4 kB / 1.256 GB, free: 4.605 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009062/0.5978, allocations: 0.5859 MB / 1.256 GB, free: 3.941 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5978, allocations: 4 kB / 1.256 GB, free: 3.938 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.598, allocations: 23.92 kB / 1.256 GB, free: 3.914 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.598, allocations: 4 kB / 1.256 GB, free: 3.91 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.598, allocations: 4 kB / 1.256 GB, free: 3.906 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.598, allocations: 3.984 kB / 1.256 GB, free: 3.902 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.598, allocations: 4 kB / 1.256 GB, free: 3.898 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003854/0.5984, allocations: 297.3 kB / 1.257 GB, free: 3.57 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.5985, allocations: 120.8 kB / 1.257 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.5986, allocations: 64 / 1.257 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.5987, allocations: 19.98 kB / 1.257 GB, free: 3.414 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.5988, allocations: 12.3 kB / 1.257 GB, free: 3.402 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.5988, allocations: 8 kB / 1.257 GB, free: 3.395 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001699/0.599, allocations: 194 kB / 1.257 GB, free: 3.203 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.599, allocations: 0 / 1.257 GB, free: 3.203 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004582/0.5995, allocations: 99.78 kB / 1.257 GB, free: 3.105 MB / 1.014 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.0004253/0.5999, allocations: 175 kB / 1.257 GB, free: 2.934 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004652/0.6004, allocations: 163.8 kB / 1.257 GB, free: 2.773 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6004, allocations: 0 / 1.257 GB, free: 2.773 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.6005, allocations: 64.02 kB / 1.258 GB, free: 2.711 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007059/0.6013, allocations: 119.6 kB / 1.258 GB, free: 2.598 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007464/0.602, allocations: 444.8 kB / 1.258 GB, free: 2.117 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.6024, allocations: 0.7558 MB / 1.259 GB, free: 1.336 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.000188/0.6025, allocations: 66.53 kB / 1.259 GB, free: 1.27 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.333e-05/0.6026, allocations: 19.44 kB / 1.259 GB, free: 1.25 MB / 1.014 GB Notification: Performance of SimCode: time 2e-07/0.6026, allocations: 4 kB / 1.259 GB, free: 1.246 MB / 1.014 GB Notification: Performance of Templates: time 0.7173/1.32, allocations: 4.384 MB / 1.263 GB, free: 174.9 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_PressureDrop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches