Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Delays.Examples.Delay.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: "" <> buildModelFMU(Buildings.Fluid.Delays.Examples.Delay,fileNamePrefix="Buildings_9_Buildings_Fluid_Delays_Examples_Delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Delays.Examples.Delay,fileNamePrefix="Buildings_9_Buildings_Fluid_Delays_Examples_Delay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002086/0.002086, allocations: 190.4 kB / 16.25 MB, free: 6.633 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.438/1.438, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.29/2.29, allocations: 390.3 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 67.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4592/0.4604, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.149/0.6094, allocations: 180.9 MB / 1.126 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.006113/0.6156, allocations: 4.858 MB / 1.131 GB, free: 7.672 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006896/0.6163, allocations: 27.81 kB / 1.131 GB, free: 7.645 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0009313/0.6172, allocations: 378.1 kB / 1.131 GB, free: 7.273 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.002606/0.6199, allocations: 1.327 MB / 1.132 GB, free: 5.941 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.6214, allocations: 0.7092 MB / 1.133 GB, free: 5.238 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.001816/0.6232, allocations: 1.845 MB / 1.135 GB, free: 3.387 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006891/0.6239, allocations: 0.5706 MB / 1.135 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.6253, allocations: 0.8599 MB / 1.136 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.6263, allocations: 0.5916 MB / 1.137 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.6265, allocations: 56 kB / 1.137 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.6283, allocations: 1.473 MB / 1.138 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002431/0.6286, allocations: 263.2 kB / 1.138 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003633/0.629, allocations: 402.1 kB / 1.139 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.6305, allocations: 1.488 MB / 1.14 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.6306, allocations: 0 / 1.14 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.062e-06/0.6306, allocations: 0 / 1.14 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.6306, allocations: 0 / 1.14 GB, free: 13.68 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001456/0.632, allocations: 1.102 MB / 1.141 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.6321, allocations: 8.031 kB / 1.141 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.6322, allocations: 86.53 kB / 1.141 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.6333, allocations: 210.8 kB / 1.142 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.6341, allocations: 0.5848 MB / 1.142 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.6341, allocations: 36.98 kB / 1.142 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.6342, allocations: 51.98 kB / 1.142 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/0.635, allocations: 498.4 kB / 1.143 GB, free: 11 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.635, allocations: 0 / 1.143 GB, free: 11 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.635, allocations: 20 kB / 1.143 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.6351, allocations: 20.98 kB / 1.143 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006831/0.6358, allocations: 443.6 kB / 1.143 GB, free: 10.53 MB / 0.9044 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.002217/0.638, allocations: 2.002 MB / 1.145 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005337/0.6385, allocations: 351.5 kB / 1.146 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.6388, allocations: 217 kB / 1.146 GB, free: 7.789 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002515/0.6391, allocations: 194.5 kB / 1.146 GB, free: 7.562 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.6391, allocations: 34.84 kB / 1.146 GB, free: 7.52 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=33): time 1.292e-06/0.6391, allocations: 0 / 1.146 GB, free: 7.52 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33): time 0.001071/0.6402, allocations: 0.5372 MB / 1.147 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.6403, allocations: 59.34 kB / 1.147 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004681/0.6407, allocations: 0.5069 MB / 1.147 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.6408, allocations: 33.7 kB / 1.147 GB, free: 6.352 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.6409, allocations: 304.2 kB / 1.147 GB, free: 6.051 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.641, allocations: 122.3 kB / 1.148 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.563e-05/0.6411, allocations: 65.94 kB / 1.148 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6413, allocations: 370.8 kB / 1.148 GB, free: 5.488 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.6415, allocations: 142 kB / 1.148 GB, free: 5.348 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.6418, allocations: 223.3 kB / 1.148 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.6423, allocations: 335.7 kB / 1.149 GB, free: 4.766 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.6423, allocations: 4 kB / 1.149 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006428/0.643, allocations: 421.1 kB / 1.149 GB, free: 4.344 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.643, allocations: 8 kB / 1.149 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.643, allocations: 0 / 1.149 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.643, allocations: 4 kB / 1.149 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.6433, allocations: 75.83 kB / 1.149 GB, free: 4.258 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.6433, allocations: 4 kB / 1.149 GB, free: 4.254 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.6438, allocations: 63.73 kB / 1.149 GB, free: 4.191 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.6439, allocations: 16 kB / 1.149 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003729/0.6442, allocations: 308 kB / 1.149 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002663/0.6445, allocations: 206.7 kB / 1.15 GB, free: 3.645 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000476/0.645, allocations: 335.2 kB / 1.15 GB, free: 3.305 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.073e-06/0.645, allocations: 0 / 1.15 GB, free: 3.305 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0006085/0.6456, allocations: 420.7 kB / 1.15 GB, free: 2.887 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.6456, allocations: 8 kB / 1.15 GB, free: 2.879 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-06/0.6456, allocations: 8.031 kB / 1.15 GB, free: 2.871 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.516e-06/0.6457, allocations: 4 kB / 1.15 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.6459, allocations: 67.89 kB / 1.15 GB, free: 2.801 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.646, allocations: 7.938 kB / 1.15 GB, free: 2.793 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/0.6464, allocations: 67.77 kB / 1.151 GB, free: 2.727 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.6465, allocations: 12 kB / 1.151 GB, free: 2.715 MB / 0.9044 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 (39): * Single equations (assignments): 39 * 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.0001083/0.6466, allocations: 200.2 kB / 1.151 GB, free: 2.512 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-05/0.6467, allocations: 55.34 kB / 1.151 GB, free: 2.457 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000669/0.6473, allocations: 439.9 kB / 1.151 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.6473, allocations: 7.938 kB / 1.151 GB, free: 2.008 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6474, allocations: 0 / 1.151 GB, free: 2.008 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005259/0.6479, allocations: 428.3 kB / 1.152 GB, free: 1.559 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.6494, allocations: 1.176 MB / 1.153 GB, free: 316 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6494, allocations: 4 kB / 1.153 GB, free: 312 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.6498, allocations: 79.89 kB / 1.153 GB, free: 232 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.299e-06/0.6498, allocations: 4.188 kB / 1.153 GB, free: 228 kB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.6498, allocations: 12 kB / 1.153 GB, free: 216 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.6498, allocations: 0 / 1.153 GB, free: 216 kB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.6498, allocations: 11.92 kB / 1.153 GB, free: 204 kB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008986/0.6507, allocations: 0.6997 MB / 1.154 GB, free: 15.46 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.6509, allocations: 180.3 kB / 1.154 GB, free: 15.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.651, allocations: 8 kB / 1.154 GB, free: 15.26 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/0.6515, allocations: 45.84 kB / 1.154 GB, free: 15.22 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.6515, allocations: 27.91 kB / 1.154 GB, free: 15.19 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.6516, allocations: 15.94 kB / 1.154 GB, free: 15.18 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003296/0.6519, allocations: 362.8 kB / 1.154 GB, free: 14.82 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6519, allocations: 4 kB / 1.154 GB, free: 14.82 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006734/0.6526, allocations: 331.2 kB / 1.154 GB, free: 14.5 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (del.dynBal.medium.Xi[1],del.dynBal.U,del.dynBal.m) * 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 (33): * Single equations (assignments): 33 * 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.00134/0.6539, allocations: 1.333 MB / 1.156 GB, free: 13.12 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009039/0.6549, allocations: 0.5473 MB / 1.156 GB, free: 12.58 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6549, allocations: 3.938 kB / 1.156 GB, free: 12.57 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.6552, allocations: 187.9 kB / 1.157 GB, free: 12.39 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.6565, allocations: 347.4 kB / 1.157 GB, free: 12.05 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005444/0.662, allocations: 4.956 MB / 1.162 GB, free: 6.961 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.6624, allocations: 0.9334 MB / 1.163 GB, free: 5.996 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0005439/0.663, allocations: 184.8 kB / 1.163 GB, free: 5.816 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.6632, allocations: 215.4 kB / 1.163 GB, free: 5.609 MB / 0.92 GB Notification: Performance of SimCode: time 3.41e-07/0.6632, allocations: 0 / 1.163 GB, free: 5.609 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3754/1.039, allocations: 16.54 MB / 1.179 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/1.039, allocations: 219.4 kB / 1.179 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/3.118, allocations: 0 / 1.179 GB, free: 5.117 MB / 0.9356 GB (rm -f Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_9_Buildings.Fluid.Delays.Examples.Delay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Delays.Examples.Delay_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Delays_Examples_Delay_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Delays_Examples_Delay.fmu > Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Delays.Examples.Delay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Delays_Examples_Delay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches