Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_Delays_Examples_Delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Delays.Examples.Delay,fileNamePrefix="Buildings_10_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.0009349/0.0009349, allocations: 98.11 kB / 15.36 MB, free: 0.7305 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.001011/0.001011, allocations: 175.2 kB / 16.27 MB, free: 6.66 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.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.528/2.528, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003118, allocations: 8 kB / 0.8729 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5865/0.5868, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.1775/0.7643, allocations: 178.6 MB / 1.198 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007355/0.7717, allocations: 4.878 MB / 1.202 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006619/0.7724, allocations: 27.81 kB / 1.202 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009805/0.7734, allocations: 370 kB / 1.203 GB, free: 7.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002941/0.7764, allocations: 1.338 MB / 1.204 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001694/0.7781, allocations: 0.6907 MB / 1.205 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002528/0.7806, allocations: 2.528 MB / 1.207 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006738/0.7813, allocations: 0.49 MB / 1.208 GB, free: 2.203 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.7827, allocations: 0.7585 MB / 1.208 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001073/0.7838, allocations: 0.5438 MB / 1.209 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.652e-05/0.7838, allocations: 24 kB / 1.209 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00247/0.7863, allocations: 1.609 MB / 1.211 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.7866, allocations: 223.3 kB / 1.211 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004457/0.787, allocations: 387.7 kB / 1.211 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.7887, allocations: 1.445 MB / 1.213 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.7887, allocations: 4 kB / 1.213 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.482e-06/0.7887, allocations: 0 / 1.213 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.7888, allocations: 0 / 1.213 GB, free: 13.2 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001479/0.7902, allocations: 0.9656 MB / 1.213 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.7903, allocations: 12.03 kB / 1.213 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.7904, allocations: 82.53 kB / 1.214 GB, free: 12.08 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.7917, allocations: 218.8 kB / 1.214 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008303/0.7925, allocations: 0.5809 MB / 1.214 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.071e-05/0.7926, allocations: 37 kB / 1.214 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.043e-05/0.7927, allocations: 44 kB / 1.214 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008882/0.7936, allocations: 0.4944 MB / 1.215 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.7936, allocations: 0 / 1.215 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.947e-05/0.7936, allocations: 20 kB / 1.215 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.902e-05/0.7937, allocations: 28.92 kB / 1.215 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008186/0.7945, allocations: 447.7 kB / 1.215 GB, free: 10.18 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.002585/0.7971, allocations: 2.017 MB / 1.217 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.7977, allocations: 356.6 kB / 1.218 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.7981, allocations: 209.3 kB / 1.218 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002797/0.7984, allocations: 198.5 kB / 1.218 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.7984, allocations: 34.84 kB / 1.218 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=33): time 1.523e-06/0.7985, allocations: 0 / 1.218 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of matching and sorting (n=33): time 0.001246/0.7997, allocations: 0.5681 MB / 1.219 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.7997, allocations: 55.41 kB / 1.219 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005633/0.8003, allocations: 0.5069 MB / 1.219 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.8004, allocations: 33.7 kB / 1.219 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.8006, allocations: 308.2 kB / 1.22 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.8007, allocations: 118.3 kB / 1.22 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.8008, allocations: 29.7 kB / 1.22 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.8009, allocations: 366.8 kB / 1.22 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.8012, allocations: 140.6 kB / 1.22 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003514/0.8016, allocations: 220 kB / 1.22 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005942/0.8022, allocations: 348.1 kB / 1.221 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.8022, allocations: 0 / 1.221 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007492/0.8029, allocations: 444.5 kB / 1.221 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.747e-05/0.803, allocations: 111.5 kB / 1.221 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.803, allocations: 4.094 kB / 1.221 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.8031, allocations: 4 kB / 1.221 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.8034, allocations: 79.89 kB / 1.221 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.8034, allocations: 0 / 1.221 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.804, allocations: 67.64 kB / 1.221 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.804, allocations: 12 kB / 1.221 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.082e-06/0.804, allocations: 7.938 kB / 1.221 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006498/0.8047, allocations: 359.7 kB / 1.222 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-06/0.8047, allocations: 0 / 1.222 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.729e-06/0.8047, allocations: 4 kB / 1.222 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.805, allocations: 75.89 kB / 1.222 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.805, allocations: 4 kB / 1.222 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005089/0.8055, allocations: 67.67 kB / 1.222 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.181e-05/0.8056, allocations: 12 kB / 1.222 GB, free: 3.152 MB / 0.9669 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.0002686/0.8059, allocations: 297 kB / 1.222 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.249e-05/0.806, allocations: 59.25 kB / 1.222 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000797/0.8068, allocations: 427.1 kB / 1.223 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.8068, allocations: 8 kB / 1.223 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.8068, allocations: 3.938 kB / 1.223 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006391/0.8074, allocations: 453.5 kB / 1.223 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.8092, allocations: 1.191 MB / 1.224 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.8092, allocations: 0 / 1.224 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.8096, allocations: 91.83 kB / 1.224 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.8097, allocations: 4 kB / 1.224 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.8097, allocations: 8 kB / 1.224 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.8097, allocations: 0 / 1.224 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.8097, allocations: 4 kB / 1.224 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.8108, allocations: 0.7194 MB / 1.225 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.811, allocations: 176.4 kB / 1.225 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.656e-05/0.8111, allocations: 8 kB / 1.225 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/0.8116, allocations: 63.86 kB / 1.225 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.717e-05/0.8117, allocations: 15.97 kB / 1.225 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.8117, allocations: 16 kB / 1.225 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.00039/0.8121, allocations: 370.8 kB / 1.226 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8121, allocations: 0 / 1.226 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0008121/0.8129, allocations: 327.1 kB / 1.226 GB, free: 14.79 MB / 0.9825 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.001635/0.8146, allocations: 1.354 MB / 1.227 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009666/0.8156, allocations: 0.525 MB / 1.228 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.8156, allocations: 0 / 1.228 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.8159, allocations: 184.5 kB / 1.228 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.8179, allocations: 371.9 kB / 1.228 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00664/0.8246, allocations: 5.054 MB / 1.233 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.8251, allocations: 0.9373 MB / 1.234 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0006511/0.8258, allocations: 180.8 kB / 1.234 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.8261, allocations: 219.4 kB / 1.235 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of SimCode: time 3.9e-07/0.8261, allocations: 0 / 1.235 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.8549, allocations: 16.09 MB / 1.25 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.8551, allocations: 225.3 kB / 1.251 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.975, allocations: 0 / 1.251 GB, free: 5.723 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_10_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_10_Buildings.Fluid.Delays.Examples.Delay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Delays.Examples.Delay_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Delays_Examples_Delay_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Delays_Examples_Delay.fmu > Buildings_10_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Delays.Examples.Delay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Delays_Examples_Delay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches