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.001337/0.001338, allocations: 102.1 kB / 16.35 MB, free: 5.875 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.001315/0.001315, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.513/1.513, allocations: 222.9 MB / 241 MB, free: 15 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.58/2.58, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.31 kB / 0.8707 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3779, allocations: 151.6 MB / 1.019 GB, free: 9.875 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001988/0.38, allocations: 0.6714 MB / 1.019 GB, free: 9.199 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.3813, allocations: 1.044 MB / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.418e-05/0.3814, allocations: 0 / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.177e-05/0.3814, allocations: 3.938 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.978e-05/0.3815, allocations: 11.88 kB / 1.02 GB, free: 8.125 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.3818, allocations: 47.83 kB / 1.021 GB, free: 8.078 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.451e-05/0.3819, allocations: 35.92 kB / 1.021 GB, free: 8.043 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.382, allocations: 15.98 kB / 1.021 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.225e-05/0.382, allocations: 15.94 kB / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.308e-05/0.3821, allocations: 19.92 kB / 1.021 GB, free: 7.992 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.3821, allocations: 3.984 kB / 1.021 GB, free: 7.988 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.49e-05/0.3822, allocations: 23.92 kB / 1.021 GB, free: 7.965 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.3822, allocations: 7.984 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.3823, allocations: 23.88 kB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.3824, allocations: 55.84 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3824, allocations: 0 / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3824, allocations: 0 / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.3824, allocations: 0 / 1.021 GB, free: 7.879 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.0005127/0.3829, allocations: 359.3 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.383, allocations: 8.625 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.383, allocations: 4.938 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.3831, allocations: 168.2 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.3832, allocations: 8.375 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.3832, allocations: 384 / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3834, allocations: 70.16 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3834, allocations: 192 / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3834, allocations: 3.938 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3834, allocations: 4 kB / 1.021 GB, free: 7.172 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.3836, allocations: 39.95 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004385/0.384, allocations: 269 kB / 1.022 GB, free: 6.82 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.3842, allocations: 58.41 kB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.595e-05/0.3843, allocations: 28.88 kB / 1.022 GB, free: 6.723 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.3843, allocations: 0 / 1.022 GB, free: 6.723 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.3845, allocations: 71.38 kB / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.3845, allocations: 3.938 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.0003607/0.3849, allocations: 105.5 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.3849, allocations: 55.41 kB / 1.022 GB, free: 6.461 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.385, allocations: 110 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.385, allocations: 25.7 kB / 1.022 GB, free: 6.312 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.3851, allocations: 96.11 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.3851, allocations: 15.81 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.3851, allocations: 17.72 kB / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3853, allocations: 318.8 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.3854, allocations: 19.98 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.3855, allocations: 55.47 kB / 1.023 GB, free: 5.77 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.3857, allocations: 79.27 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3857, allocations: 0 / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002399/0.3859, allocations: 97.59 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3859, allocations: 4 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.386, allocations: 4 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.386, allocations: 0 / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.3861, allocations: 15.92 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3861, allocations: 4 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.358e-05/0.3862, allocations: 15.95 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.3862, allocations: 12 kB / 1.023 GB, free: 5.523 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.685e-05/0.3863, allocations: 113.8 kB / 1.023 GB, free: 5.402 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.3863, allocations: 4 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.3865, allocations: 89.61 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3865, allocations: 3.938 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.3866, allocations: 0 / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3866, allocations: 0 / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003825/0.3869, allocations: 342.8 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.387, allocations: 0 / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.782e-05/0.387, allocations: 11.98 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.387, allocations: 0 / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.387, allocations: 0 / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3871, allocations: 3.938 kB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3871, allocations: 3.938 kB / 1.023 GB, free: 4.891 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.3873, allocations: 191.3 kB / 1.023 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.3874, allocations: 77.11 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.3874, allocations: 0 / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.299e-05/0.3875, allocations: 7.984 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.3875, allocations: 11.94 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.3875, allocations: 3.938 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.478e-05/0.3876, allocations: 95.27 kB / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3876, allocations: 0 / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002355/0.3878, allocations: 8 kB / 1.024 GB, free: 4.469 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.0001475/0.388, allocations: 99.25 kB / 1.024 GB, free: 4.359 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000228/0.3882, allocations: 59.88 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3882, allocations: 256 / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.563e-05/0.3883, allocations: 31.92 kB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.3886, allocations: 8 kB / 1.024 GB, free: 4.262 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003306/0.3889, allocations: 148 kB / 1.024 GB, free: 4.094 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.3892, allocations: 0.6807 MB / 1.025 GB, free: 3.387 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.554e-05/0.3892, allocations: 0 / 1.025 GB, free: 3.387 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.3893, allocations: 15.44 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3893, allocations: 0 / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of Templates: time 0.003118/0.3924, allocations: 0.7518 MB / 1.025 GB, free: 2.629 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 gbode -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