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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001741/0.001741, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00241/0.00241, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.788/2.788, allocations: 472.6 MB / 0.7451 GB, free: 4.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 58.25 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3178, allocations: 159.9 MB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PressureDrop): time 0.1825/0.5003, allocations: 161.5 MB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003011/0.5034, allocations: 1.717 MB / 1.228 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.5037, allocations: 11.94 kB / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005813/0.5043, allocations: 155 kB / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001266/0.5057, allocations: 0.5159 MB / 1.228 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.5068, allocations: 413.3 kB / 1.229 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0007116/0.5075, allocations: 0.5693 MB / 1.229 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.5078, allocations: 180.5 kB / 1.229 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005758/0.5084, allocations: 314.7 kB / 1.23 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.5086, allocations: 155.3 kB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.5086, allocations: 12 kB / 1.23 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.5098, allocations: 0.6938 MB / 1.23 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.5099, allocations: 79.67 kB / 1.231 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.51, allocations: 115.4 kB / 1.231 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006926/0.5107, allocations: 498.6 kB / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.5107, allocations: 0 / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.683e-06/0.5107, allocations: 0 / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.5107, allocations: 0 / 1.231 GB, free: 2.969 MB / 0.9825 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.0007906/0.5115, allocations: 0.5798 MB / 1.232 GB, free: 2.34 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.5116, allocations: 20.02 kB / 1.232 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003404/0.5119, allocations: 51.69 kB / 1.232 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.5123, allocations: 293.2 kB / 1.232 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.5123, allocations: 12 kB / 1.232 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.5124, allocations: 16 kB / 1.232 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.5127, allocations: 188.1 kB / 1.232 GB, free: 1.711 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.5128, allocations: 4 kB / 1.232 GB, free: 1.707 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.5128, allocations: 8 kB / 1.232 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.5128, allocations: 4 kB / 1.232 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.5131, allocations: 123.8 kB / 1.232 GB, free: 1.574 MB / 0.9825 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.001048/0.5142, allocations: 0.7924 MB / 1.233 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.5144, allocations: 86.53 kB / 1.233 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.5146, allocations: 80.8 kB / 1.233 GB, free: 0.5352 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003398/0.515, allocations: 186.2 kB / 1.234 GB, free: 324 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.515, allocations: 34.56 kB / 1.234 GB, free: 280 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.515, allocations: 0 / 1.234 GB, free: 280 kB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0006887/0.5157, allocations: 221.2 kB / 1.234 GB, free: 52 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.5158, allocations: 55.34 kB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.516, allocations: 267 kB / 1.234 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.5161, allocations: 29.7 kB / 1.234 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.5162, allocations: 144 kB / 1.234 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.5162, allocations: 39.45 kB / 1.234 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.5163, allocations: 33.7 kB / 1.234 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.5165, allocations: 326.8 kB / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.5166, allocations: 52.75 kB / 1.235 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.5168, allocations: 93.11 kB / 1.235 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.517, allocations: 123.3 kB / 1.235 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.5171, allocations: 64 / 1.235 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003726/0.5174, allocations: 161.2 kB / 1.235 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.5175, allocations: 8 kB / 1.235 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.5175, allocations: 7.984 kB / 1.235 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5175, allocations: 3.938 kB / 1.235 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.5176, allocations: 19.98 kB / 1.235 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.5176, allocations: 4 kB / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.5178, allocations: 15.92 kB / 1.235 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.5178, allocations: 8 kB / 1.235 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000197/0.518, allocations: 140.1 kB / 1.235 GB, free: 14.46 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001556/0.5182, allocations: 105.6 kB / 1.235 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002453/0.5185, allocations: 111.7 kB / 1.235 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.022e-06/0.5185, allocations: 4 kB / 1.235 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0003266/0.5188, allocations: 165.1 kB / 1.236 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.5188, allocations: 8 kB / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-06/0.5188, allocations: 0 / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-06/0.5188, allocations: 0 / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.519, allocations: 23.92 kB / 1.236 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.347e-06/0.519, allocations: 4 kB / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.5191, allocations: 16.02 kB / 1.236 GB, free: 14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.5192, allocations: 7.984 kB / 1.236 GB, free: 13.99 MB / 0.9981 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.000115/0.5193, allocations: 188.2 kB / 1.236 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.5193, allocations: 23.72 kB / 1.236 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003745/0.5197, allocations: 163.2 kB / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.5197, allocations: 0 / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5197, allocations: 0 / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5197, allocations: 4 kB / 1.236 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008945/0.5207, allocations: 0.5937 MB / 1.237 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.5207, allocations: 4 kB / 1.237 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.5208, allocations: 23.92 kB / 1.237 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.962e-06/0.5208, allocations: 7.984 kB / 1.237 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.5208, allocations: 4 kB / 1.237 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5208, allocations: 3.938 kB / 1.237 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5208, allocations: 4 kB / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003777/0.5212, allocations: 293.3 kB / 1.237 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.5214, allocations: 120.8 kB / 1.237 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.5214, allocations: 0 / 1.237 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.5216, allocations: 20.05 kB / 1.237 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.5217, allocations: 15.86 kB / 1.237 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.5217, allocations: 8.188 kB / 1.237 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001918/0.5219, allocations: 194 kB / 1.237 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5219, allocations: 0 / 1.237 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004566/0.5223, allocations: 103.8 kB / 1.237 GB, free: 12.09 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 (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.0003729/0.5227, allocations: 167.1 kB / 1.238 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004726/0.5232, allocations: 167.7 kB / 1.238 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5232, allocations: 0 / 1.238 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.5234, allocations: 64.02 kB / 1.238 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.5241, allocations: 113.6 kB / 1.238 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006827/0.5248, allocations: 443 kB / 1.238 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.5252, allocations: 0.7636 MB / 1.239 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002311/0.5255, allocations: 73.88 kB / 1.239 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.639e-05/0.5256, allocations: 19.44 kB / 1.239 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.5256, allocations: 0 / 1.239 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of Templates: time 0.009035/0.5346, allocations: 4.38 MB / 1.243 GB, free: 5.922 MB / 0.9981 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