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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Delays.Examples.Delay") translateModel(Buildings.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Delays.Examples.Delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 100.1 kB / 15.88 MB, free: 12 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.00148/0.00148, allocations: 197.7 kB / 16.79 MB, free: 6.809 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.358/1.358, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.354/2.354, allocations: 390.2 MB / 0.6649 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 71.83 kB / 0.8125 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6831/0.6846, allocations: 140.3 MB / 0.9496 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.191/0.8757, allocations: 181 MB / 1.126 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.008307/0.884, allocations: 4.941 MB / 1.131 GB, free: 7.559 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.8855, allocations: 31.81 kB / 1.131 GB, free: 7.527 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.8869, allocations: 374 kB / 1.132 GB, free: 7.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00366/0.8907, allocations: 1.323 MB / 1.133 GB, free: 5.832 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00204/0.8927, allocations: 0.6977 MB / 1.134 GB, free: 5.141 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00299/0.8957, allocations: 2.531 MB / 1.136 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009023/0.8966, allocations: 0.5031 MB / 1.136 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.8988, allocations: 0.7702 MB / 1.137 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.9004, allocations: 0.5641 MB / 1.138 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000209/0.9007, allocations: 28 kB / 1.138 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003384/0.9041, allocations: 1.617 MB / 1.139 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004085/0.9045, allocations: 239.2 kB / 1.14 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007515/0.9053, allocations: 378.1 kB / 1.14 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.9072, allocations: 1.025 MB / 1.141 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.9072, allocations: 4 kB / 1.141 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9072, allocations: 0 / 1.141 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.009e-05/0.9072, allocations: 0 / 1.141 GB, free: 13.46 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.00224/0.9095, allocations: 1.086 MB / 1.142 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.9096, allocations: 12.03 kB / 1.142 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001485/0.911, allocations: 210.8 kB / 1.142 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.9122, allocations: 0.5848 MB / 1.143 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.9123, allocations: 36.94 kB / 1.143 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/0.9124, allocations: 51.98 kB / 1.143 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009706/0.9133, allocations: 0.4905 MB / 1.143 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.9134, allocations: 0 / 1.143 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.061e-05/0.9134, allocations: 16 kB / 1.143 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.432e-05/0.9135, allocations: 20.98 kB / 1.143 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008653/0.9143, allocations: 439.7 kB / 1.144 GB, free: 10.42 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.003333/0.9177, allocations: 2.002 MB / 1.146 GB, free: 8.246 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006984/0.9184, allocations: 365.4 kB / 1.146 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.9188, allocations: 209.2 kB / 1.146 GB, free: 7.676 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000331/0.9191, allocations: 198.5 kB / 1.147 GB, free: 7.445 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.9192, allocations: 34.84 kB / 1.147 GB, free: 7.402 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/0.9192, allocations: 4 kB / 1.147 GB, free: 7.398 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33): time 0.00132/0.9205, allocations: 0.5379 MB / 1.147 GB, free: 6.855 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.9206, allocations: 63.34 kB / 1.147 GB, free: 6.781 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006183/0.9212, allocations: 0.503 MB / 1.148 GB, free: 6.27 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.449e-05/0.9212, allocations: 33.7 kB / 1.148 GB, free: 6.23 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.9215, allocations: 304.2 kB / 1.148 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.9216, allocations: 114.3 kB / 1.148 GB, free: 5.816 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.9218, allocations: 73.94 kB / 1.148 GB, free: 5.738 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.9219, allocations: 366.8 kB / 1.149 GB, free: 5.371 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.9222, allocations: 142.1 kB / 1.149 GB, free: 5.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000346/0.9226, allocations: 219.2 kB / 1.149 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005968/0.9232, allocations: 335.2 kB / 1.149 GB, free: 4.652 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.9232, allocations: 0 / 1.149 GB, free: 4.652 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007669/0.924, allocations: 433.7 kB / 1.15 GB, free: 4.223 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.924, allocations: 4 kB / 1.15 GB, free: 4.219 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.924, allocations: 8.156 kB / 1.15 GB, free: 4.211 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.924, allocations: 4 kB / 1.15 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.9244, allocations: 75.89 kB / 1.15 GB, free: 4.133 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.9244, allocations: 3.938 kB / 1.15 GB, free: 4.129 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005738/0.925, allocations: 63.64 kB / 1.15 GB, free: 4.066 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.925, allocations: 16 kB / 1.15 GB, free: 4.051 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004876/0.9255, allocations: 308 kB / 1.15 GB, free: 3.746 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003147/0.9259, allocations: 202.8 kB / 1.15 GB, free: 3.523 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005441/0.9264, allocations: 327.2 kB / 1.151 GB, free: 3.191 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.9264, allocations: 0 / 1.151 GB, free: 3.191 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.000757/0.9272, allocations: 436.6 kB / 1.151 GB, free: 2.758 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.9272, allocations: 4 kB / 1.151 GB, free: 2.754 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-06/0.9272, allocations: 3.938 kB / 1.151 GB, free: 2.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.25e-06/0.9272, allocations: 4 kB / 1.151 GB, free: 2.746 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.9275, allocations: 71.89 kB / 1.151 GB, free: 2.676 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.9276, allocations: 3.938 kB / 1.151 GB, free: 2.672 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005563/0.9281, allocations: 71.67 kB / 1.151 GB, free: 2.602 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.9282, allocations: 8 kB / 1.151 GB, free: 2.594 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.0001851/0.9283, allocations: 204.2 kB / 1.151 GB, free: 2.387 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.9285, allocations: 55.34 kB / 1.151 GB, free: 2.332 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000833/0.9293, allocations: 427.2 kB / 1.152 GB, free: 1.906 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.9293, allocations: 7.938 kB / 1.152 GB, free: 1.898 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.9293, allocations: 3.938 kB / 1.152 GB, free: 1.895 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006281/0.93, allocations: 428.3 kB / 1.152 GB, free: 1.445 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.9318, allocations: 1.176 MB / 1.153 GB, free: 200 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.9319, allocations: 4.031 kB / 1.153 GB, free: 196 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.9323, allocations: 83.89 kB / 1.153 GB, free: 112 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.9323, allocations: 4 kB / 1.153 GB, free: 108 kB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.9323, allocations: 8 kB / 1.153 GB, free: 100 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.9324, allocations: 4 kB / 1.153 GB, free: 96 kB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.9324, allocations: 0 / 1.153 GB, free: 96 kB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.9335, allocations: 0.6993 MB / 1.154 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002585/0.9338, allocations: 188.3 kB / 1.154 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.501e-05/0.9339, allocations: 12 kB / 1.154 GB, free: 15.14 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005017/0.9344, allocations: 35.95 kB / 1.154 GB, free: 15.11 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.035e-05/0.9345, allocations: 27.97 kB / 1.154 GB, free: 15.08 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.9345, allocations: 16 kB / 1.154 GB, free: 15.07 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004519/0.935, allocations: 366.8 kB / 1.155 GB, free: 14.71 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.81e-07/0.935, allocations: 3.938 kB / 1.155 GB, free: 14.71 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000897/0.9359, allocations: 319.2 kB / 1.155 GB, free: 14.39 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.0004805/0.9364, allocations: 199.5 kB / 1.155 GB, free: 14.2 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001065/0.9374, allocations: 0.5162 MB / 1.156 GB, free: 13.68 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.9374, allocations: 0 / 1.156 GB, free: 13.68 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.9378, allocations: 183.7 kB / 1.156 GB, free: 13.5 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.9396, allocations: 365.9 kB / 1.156 GB, free: 13.15 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.9419, allocations: 1.528 MB / 1.158 GB, free: 11.57 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.9424, allocations: 0.9295 MB / 1.159 GB, free: 10.61 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.9426, allocations: 55.38 kB / 1.159 GB, free: 10.55 MB / 0.92 GB Notification: Performance of SimCode: time 7.52e-07/0.9426, allocations: 0 / 1.159 GB, free: 10.55 MB / 0.92 GB Notification: Performance of Templates: time 0.01519/0.9578, allocations: 9.776 MB / 1.168 GB, free: 0.8789 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Delays.Examples.Delay.makefile (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 & ./Buildings_9_Buildings.Fluid.Delays.Examples.Delay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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