Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.001483/0.001483, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001722/0.001722, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.213/1.213, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.412/2.412, allocations: 437 MB / 0.7101 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 71.83 kB / 0.8689 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5028/0.5042, allocations: 151.6 MB / 1.017 GB, free: 2.645 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001683/0.5059, allocations: 0.7343 MB / 1.018 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.5069, allocations: 1.042 MB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.276e-05/0.507, allocations: 0 / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.366e-05/0.507, allocations: 3.938 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.268e-05/0.5071, allocations: 7.922 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.5073, allocations: 35.91 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.344e-05/0.5074, allocations: 35.92 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.134e-05/0.5075, allocations: 15.98 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.395e-05/0.5075, allocations: 19.88 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.601e-05/0.5076, allocations: 23.89 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.5076, allocations: 4 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.5076, allocations: 16 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.5077, allocations: 7.984 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.5077, allocations: 19.88 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.664e-05/0.5078, allocations: 51.84 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.5078, allocations: 4 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5078, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.5078, allocations: 4 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004246/0.5082, allocations: 361.5 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.5083, allocations: 8.031 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.829e-05/0.5083, allocations: 30.75 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.48e-05/0.5084, allocations: 4.938 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.5085, allocations: 168.3 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.5085, allocations: 8.375 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.5085, allocations: 4.359 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.5087, allocations: 66.17 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.5087, allocations: 3.938 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.5087, allocations: 4 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.5087, allocations: 3.938 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.5089, allocations: 35.95 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003854/0.5093, allocations: 276.9 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001227/0.5094, allocations: 46.48 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.446e-05/0.5095, allocations: 24.94 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.5095, allocations: 3.984 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/0.5097, allocations: 75.39 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 2.925e-06/0.5097, allocations: 0 / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0003406/0.51, allocations: 109.4 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.5101, allocations: 59.39 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.566e-05/0.5102, allocations: 109.8 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.5102, allocations: 29.69 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.501e-05/0.5102, allocations: 88.08 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.5102, allocations: 15.81 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.5103, allocations: 21.7 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.129e-05/0.5104, allocations: 322.8 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.054e-05/0.5105, allocations: 19.98 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.816e-05/0.5106, allocations: 47.41 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.5108, allocations: 79.33 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5108, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002367/0.511, allocations: 97.59 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.511, allocations: 4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.5111, allocations: 4 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-06/0.5111, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.411e-05/0.5112, allocations: 15.92 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5112, allocations: 4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.181e-05/0.5112, allocations: 7.984 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.5113, allocations: 4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.923e-05/0.5113, allocations: 122.4 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.5114, allocations: 3.906 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002355/0.5116, allocations: 93.55 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.5116, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.5116, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.5116, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/0.512, allocations: 346.4 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.512, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.603e-05/0.512, allocations: 11.94 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.5121, allocations: 3.984 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.5121, allocations: 8.312 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.5121, allocations: 0 / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5121, allocations: 4 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.5124, allocations: 187.4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.5125, allocations: 77.11 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.5125, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.5126, allocations: 11.92 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.5127, allocations: 7.938 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.5127, allocations: 3.984 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.882e-05/0.5127, allocations: 87.75 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5127, allocations: 4 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003644/0.5131, allocations: 16 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004717/0.5136, allocations: 0.7126 MB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002121/0.5138, allocations: 63.89 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.5138, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.387e-05/0.5139, allocations: 27.97 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.5142, allocations: 21.97 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.5155, allocations: 1.383 MB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.5157, allocations: 0.6807 MB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.77e-05/0.5157, allocations: 3.984 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.5157, allocations: 15.44 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.5157, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.5486, allocations: 1.546 MB / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/0.5488, allocations: 202.4 kB / 1.026 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/2.179, allocations: 7.031 kB / 1.026 GB, free: 8.422 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches