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.001274/0.001274, allocations: 105.8 kB / 16.37 MB, free: 6.477 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.001313/0.001313, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.445/2.445, allocations: 437.1 MB / 0.7112 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.69 kB / 0.8707 GB, free: 1.496 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3353, allocations: 151.6 MB / 1.019 GB, free: 9.895 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001874/0.3372, allocations: 0.6559 MB / 1.019 GB, free: 9.234 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.3384, allocations: 1.059 MB / 1.02 GB, free: 8.16 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.189e-05/0.3385, allocations: 4 kB / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.3385, allocations: 3.938 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.542e-05/0.3386, allocations: 7.922 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.3389, allocations: 35.84 kB / 1.021 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.652e-05/0.339, allocations: 43.91 kB / 1.021 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.572e-05/0.3391, allocations: 15.98 kB / 1.021 GB, free: 8.051 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.087e-05/0.3391, allocations: 19.92 kB / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.449e-05/0.3392, allocations: 19.92 kB / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.3392, allocations: 4 kB / 1.021 GB, free: 8.008 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.428e-05/0.3393, allocations: 15.98 kB / 1.021 GB, free: 7.992 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.446e-05/0.3393, allocations: 15.92 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.3393, allocations: 19.92 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.3395, allocations: 51.8 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3395, allocations: 0 / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.374e-06/0.3395, allocations: 0 / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.3395, allocations: 0 / 1.021 GB, free: 7.906 MB / 0.795 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.0004814/0.34, allocations: 367.2 kB / 1.021 GB, free: 7.496 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.34, allocations: 8.031 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.3401, allocations: 4.938 kB / 1.021 GB, free: 7.484 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.997e-05/0.3402, allocations: 176.2 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.3402, allocations: 384 / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.3402, allocations: 8.375 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3404, allocations: 54.23 kB / 1.021 GB, free: 7.207 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.3404, allocations: 4.188 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3404, allocations: 7.938 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.3404, allocations: 0 / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.3406, allocations: 43.89 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004131/0.341, allocations: 269 kB / 1.022 GB, free: 6.84 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.3412, allocations: 50.48 kB / 1.022 GB, free: 6.781 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.513e-05/0.3413, allocations: 24.94 kB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.3413, allocations: 3.984 kB / 1.022 GB, free: 6.75 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/0.3415, allocations: 71.33 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.3415, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.0003539/0.3418, allocations: 105.5 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.3419, allocations: 59.39 kB / 1.022 GB, free: 6.488 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.311e-05/0.3419, allocations: 105.8 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.342, allocations: 29.7 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.211e-05/0.342, allocations: 84.14 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.342, allocations: 11.81 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.3421, allocations: 25.7 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3422, allocations: 318.8 kB / 1.022 GB, free: 5.891 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.062e-05/0.3423, allocations: 27.91 kB / 1.023 GB, free: 5.863 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.3424, allocations: 55.7 kB / 1.023 GB, free: 5.797 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.3426, allocations: 79.27 kB / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3426, allocations: 0 / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000251/0.3429, allocations: 97.58 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3429, allocations: 8 kB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3429, allocations: 4.125 kB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3429, allocations: 0 / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.343, allocations: 15.98 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.343, allocations: 3.984 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.417e-05/0.3431, allocations: 19.78 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3431, allocations: 4 kB / 1.023 GB, free: 5.551 MB / 0.795 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 7.924e-05/0.3432, allocations: 121.7 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.146e-05/0.3432, allocations: 3.984 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.3435, allocations: 89.62 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.3435, allocations: 0 / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3435, allocations: 4 kB / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3435, allocations: 0 / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.3439, allocations: 338.8 kB / 1.023 GB, free: 4.934 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3439, allocations: 4 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.344, allocations: 15.98 kB / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.344, allocations: 0 / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.344, allocations: 0 / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.344, allocations: 0 / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.344, allocations: 0 / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.3443, allocations: 187.3 kB / 1.024 GB, free: 4.715 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.075e-05/0.3443, allocations: 77.11 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.3443, allocations: 8 kB / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.127e-05/0.3444, allocations: 7.984 kB / 1.024 GB, free: 4.605 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.3444, allocations: 7.984 kB / 1.024 GB, free: 4.598 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.3445, allocations: 3.938 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.045e-05/0.3445, allocations: 87.28 kB / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3445, allocations: 0 / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000235/0.3447, allocations: 8 kB / 1.024 GB, free: 4.5 MB / 0.795 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.0001416/0.3449, allocations: 107.2 kB / 1.024 GB, free: 4.383 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002269/0.3451, allocations: 59.89 kB / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3451, allocations: 0 / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.275e-05/0.3452, allocations: 27.92 kB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.3455, allocations: 7.984 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002855/0.3458, allocations: 146.2 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.346, allocations: 0.6807 MB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.972e-05/0.346, allocations: 7.984 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.3461, allocations: 7.438 kB / 1.025 GB, free: 3.398 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3461, allocations: 0 / 1.025 GB, free: 3.398 MB / 0.795 GB Notification: Performance of Templates: time 0.003074/0.3492, allocations: 0.75 MB / 1.025 GB, free: 2.652 MB / 0.795 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 -s cvode -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