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.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008048/0.008048, allocations: 101.2 kB / 15.88 MB, free: 5.867 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.001801/0.001801, allocations: 193.5 kB / 16.79 MB, free: 5.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.412/1.412, allocations: 222.9 MB / 240.5 MB, free: 4.578 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.599/2.599, allocations: 437 MB / 0.7106 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.89 kB / 0.8692 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7606/0.7621, allocations: 151.6 MB / 1.017 GB, free: 2.906 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002584/0.7647, allocations: 0.7343 MB / 1.018 GB, free: 2.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.7663, allocations: 1.054 MB / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.104e-05/0.7664, allocations: 0 / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.993e-05/0.7664, allocations: 0 / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.942e-05/0.7665, allocations: 3.938 kB / 1.019 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.7668, allocations: 35.91 kB / 1.019 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.958e-05/0.7669, allocations: 43.91 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.767, allocations: 4 kB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.118e-05/0.7671, allocations: 15.92 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.649e-05/0.7672, allocations: 23.92 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.7672, allocations: 0 / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.344e-05/0.7673, allocations: 19.98 kB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.233e-05/0.7673, allocations: 11.97 kB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.021e-05/0.7673, allocations: 15.88 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.7675, allocations: 31.94 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.7675, allocations: 4 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7675, allocations: 0 / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.7675, allocations: 0 / 1.019 GB, free: 0.8984 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.0005572/0.768, allocations: 369.4 kB / 1.02 GB, free: 500 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.7681, allocations: 8.031 kB / 1.02 GB, free: 492 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/0.7681, allocations: 0.9375 kB / 1.02 GB, free: 492 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.7683, allocations: 172.3 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.7683, allocations: 384 / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.7683, allocations: 12.31 kB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.7685, allocations: 58.22 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.7686, allocations: 192 / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.7686, allocations: 3.938 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.7686, allocations: 0 / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.7688, allocations: 43.97 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.7693, allocations: 272.9 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.7695, allocations: 54.47 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.7696, allocations: 28.94 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.7696, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.7698, allocations: 75.31 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/0.7698, allocations: 3.938 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004047/0.7702, allocations: 105.7 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.7703, allocations: 51.41 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.48e-05/0.7704, allocations: 105.8 kB / 1.021 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.7704, allocations: 33.7 kB / 1.021 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/0.7705, allocations: 84.08 kB / 1.021 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.7705, allocations: 19.8 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.7706, allocations: 17.72 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.7707, allocations: 314.8 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.7708, allocations: 32.05 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.7709, allocations: 51.34 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.7711, allocations: 75.34 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7711, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002713/0.7714, allocations: 101.5 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.7714, allocations: 4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.7714, allocations: 128 / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.7715, allocations: 8 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.7716, allocations: 11.98 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.7716, allocations: 0 / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.572e-05/0.7717, allocations: 19.89 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.7717, allocations: 0 / 1.021 GB, free: 14.55 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 8.999e-05/0.7718, allocations: 121.7 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/0.7718, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.7721, allocations: 93.61 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.7721, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7721, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.7721, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004396/0.7726, allocations: 350.3 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.7726, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.422e-05/0.7727, allocations: 11.98 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.7727, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.7727, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.7727, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7727, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.773, allocations: 187.5 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.7731, allocations: 85.11 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.7731, allocations: 11.94 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.384e-05/0.7732, allocations: 7.984 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.7732, allocations: 4 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.7732, allocations: 3.938 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.938e-05/0.7733, allocations: 87.27 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7733, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002482/0.7735, allocations: 12 kB / 1.022 GB, free: 13.48 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.0001751/0.7737, allocations: 107.9 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002628/0.774, allocations: 63.89 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.774, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.7741, allocations: 27.97 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.7744, allocations: 6.25 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003737/0.7748, allocations: 173.7 kB / 1.023 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.7751, allocations: 0.6848 MB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.7751, allocations: 11.44 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of SimCode: time 6.81e-07/0.7751, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of Templates: time 0.002735/0.7778, allocations: 0.8191 MB / 1.024 GB, free: 11.54 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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