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.001263/0.001264, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001569/0.001569, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.429/1.429, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.797/2.797, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 66.42 kB / 0.8984 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.325, allocations: 157.4 MB / 1.052 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PressureDrop): time 0.1746/0.4997, allocations: 159.3 MB / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003239/0.503, allocations: 1.728 MB / 1.209 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003553/0.5033, allocations: 19.88 kB / 1.209 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005728/0.5039, allocations: 127.3 kB / 1.209 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001239/0.5052, allocations: 490 kB / 1.21 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.5064, allocations: 369.6 kB / 1.21 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009123/0.5073, allocations: 0.7643 MB / 1.211 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002998/0.5076, allocations: 148.5 kB / 1.211 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006277/0.5082, allocations: 302.7 kB / 1.211 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.5085, allocations: 159.3 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.726e-05/0.5085, allocations: 15.92 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001246/0.5098, allocations: 0.7716 MB / 1.212 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.5099, allocations: 75.78 kB / 1.212 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.51, allocations: 107.4 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007632/0.5108, allocations: 0.5102 MB / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.5108, allocations: 4 kB / 1.213 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of FrontEnd: time 7.61e-07/0.5108, allocations: 0 / 1.213 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.5108, allocations: 0 / 1.213 GB, free: 3.434 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.0009053/0.5118, allocations: 0.5852 MB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.5118, allocations: 8.031 kB / 1.214 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003425/0.5121, allocations: 55.67 kB / 1.214 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.5125, allocations: 289.3 kB / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.5125, allocations: 8 kB / 1.214 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.5126, allocations: 20 kB / 1.214 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.513, allocations: 188.2 kB / 1.214 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.513, allocations: 0 / 1.214 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.513, allocations: 4 kB / 1.214 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.513, allocations: 4 kB / 1.214 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.5134, allocations: 137.4 kB / 1.214 GB, free: 2.047 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.00114/0.5145, allocations: 0.7891 MB / 1.215 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.5148, allocations: 82.59 kB / 1.215 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.515, allocations: 72.81 kB / 1.215 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004156/0.5154, allocations: 190.2 kB / 1.215 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.5154, allocations: 34.5 kB / 1.215 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.5155, allocations: 4 kB / 1.215 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007156/0.5162, allocations: 225.1 kB / 1.216 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.5162, allocations: 55.41 kB / 1.216 GB, free: 472 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.5165, allocations: 267 kB / 1.216 GB, free: 200 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.5165, allocations: 29.7 kB / 1.216 GB, free: 164 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.5167, allocations: 148 kB / 1.216 GB, free: 12 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.5167, allocations: 27.73 kB / 1.216 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.508e-05/0.5168, allocations: 29.61 kB / 1.216 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.517, allocations: 342.8 kB / 1.217 GB, free: 15.6 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.5172, allocations: 44.83 kB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.5173, allocations: 89.11 kB / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.5176, allocations: 127.3 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5176, allocations: 4.062 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003512/0.518, allocations: 157.4 kB / 1.217 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.518, allocations: 4 kB / 1.217 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.518, allocations: 7.984 kB / 1.217 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.518, allocations: 3.938 kB / 1.217 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.5182, allocations: 19.98 kB / 1.217 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.5182, allocations: 4.031 kB / 1.217 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.5184, allocations: 27.83 kB / 1.217 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.863e-05/0.5185, allocations: 7.984 kB / 1.217 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002025/0.5187, allocations: 148.1 kB / 1.217 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001653/0.5189, allocations: 97.05 kB / 1.217 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002355/0.5191, allocations: 119.3 kB / 1.217 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.002e-06/0.5191, allocations: 0 / 1.217 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.000322/0.5194, allocations: 149.3 kB / 1.217 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.5195, allocations: 16.02 kB / 1.217 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-06/0.5195, allocations: 0.75 kB / 1.217 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-06/0.5195, allocations: 0 / 1.217 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.5196, allocations: 27.92 kB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.5196, allocations: 3.938 kB / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.5198, allocations: 11.98 kB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.5198, allocations: 8 kB / 1.218 GB, free: 14.46 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.0001641/0.52, allocations: 188.3 kB / 1.218 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.902e-05/0.52, allocations: 23.72 kB / 1.218 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003881/0.5204, allocations: 163.2 kB / 1.218 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.5204, allocations: 4 kB / 1.218 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5204, allocations: 0 / 1.218 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5204, allocations: 3.984 kB / 1.218 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009347/0.5214, allocations: 0.5936 MB / 1.218 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.5214, allocations: 0 / 1.218 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.5215, allocations: 32.33 kB / 1.219 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.5215, allocations: 0 / 1.219 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.5216, allocations: 11.94 kB / 1.219 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.5216, allocations: 4 kB / 1.219 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5216, allocations: 3.984 kB / 1.219 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004186/0.522, allocations: 293.2 kB / 1.219 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.5221, allocations: 108.8 kB / 1.219 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.5222, allocations: 11.98 kB / 1.219 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.5224, allocations: 27.89 kB / 1.219 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.5224, allocations: 11.92 kB / 1.219 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.5225, allocations: 12 kB / 1.219 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001882/0.5226, allocations: 190 kB / 1.219 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5227, allocations: 0 / 1.219 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005041/0.5232, allocations: 95.84 kB / 1.219 GB, free: 12.56 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.0004245/0.5236, allocations: 162.2 kB / 1.219 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004638/0.5241, allocations: 167.6 kB / 1.22 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5241, allocations: 0 / 1.22 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.5242, allocations: 64.39 kB / 1.22 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008299/0.5251, allocations: 132.4 kB / 1.22 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000723/0.5258, allocations: 0.4951 MB / 1.22 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.5262, allocations: 0.7638 MB / 1.221 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002811/0.5265, allocations: 70.22 kB / 1.221 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.227e-05/0.5265, allocations: 19.44 kB / 1.221 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.5265, allocations: 0 / 1.221 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of Templates: time 0.009702/0.5362, allocations: 4.269 MB / 1.225 GB, free: 6.41 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