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: 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.001438/0.001438, allocations: 104.4 kB / 15.99 MB, free: 6.355 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.001389/0.001389, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.431/1.431, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.663/2.663, allocations: 437.1 MB / 0.7107 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 63.33 kB / 0.8694 GB, free: 2.555 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3229, allocations: 151.6 MB / 1.017 GB, free: 10.99 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001991/0.325, allocations: 0.7364 MB / 1.018 GB, free: 10.25 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001356/0.3263, allocations: 1.044 MB / 1.019 GB, free: 9.195 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.83e-05/0.3264, allocations: 0 / 1.019 GB, free: 9.195 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.99e-05/0.3265, allocations: 3.938 kB / 1.019 GB, free: 9.191 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.351e-05/0.3266, allocations: 7.922 kB / 1.019 GB, free: 9.184 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.3269, allocations: 39.97 kB / 1.019 GB, free: 9.145 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.903e-05/0.3269, allocations: 43.84 kB / 1.019 GB, free: 9.102 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.036e-05/0.327, allocations: 8 kB / 1.019 GB, free: 9.094 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.169e-05/0.3271, allocations: 19.92 kB / 1.019 GB, free: 9.074 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.658e-05/0.3272, allocations: 19.92 kB / 1.019 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.3272, allocations: 0 / 1.019 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.203e-05/0.3273, allocations: 19.98 kB / 1.019 GB, free: 9.035 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.369e-05/0.3273, allocations: 11.97 kB / 1.019 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.792e-05/0.3273, allocations: 23.88 kB / 1.019 GB, free: 9 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.514e-05/0.3274, allocations: 35.94 kB / 1.019 GB, free: 8.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3275, allocations: 0 / 1.019 GB, free: 8.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3275, allocations: 0 / 1.019 GB, free: 8.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.3275, allocations: 0 / 1.019 GB, free: 8.965 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.0005367/0.328, allocations: 355.6 kB / 1.02 GB, free: 8.566 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3281, allocations: 8.922 kB / 1.02 GB, free: 8.559 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.3281, allocations: 4.938 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.3283, allocations: 180.2 kB / 1.02 GB, free: 8.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.3283, allocations: 4.375 kB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.3283, allocations: 4.375 kB / 1.02 GB, free: 8.332 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3285, allocations: 58.22 kB / 1.02 GB, free: 8.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3285, allocations: 4.188 kB / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3285, allocations: 3.938 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3285, allocations: 4 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.3287, allocations: 35.95 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004625/0.3292, allocations: 280.9 kB / 1.02 GB, free: 7.898 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.3293, allocations: 50.48 kB / 1.02 GB, free: 7.84 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.721e-05/0.3294, allocations: 24.88 kB / 1.02 GB, free: 7.812 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3295, allocations: 4 kB / 1.02 GB, free: 7.809 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.3296, allocations: 71.38 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.3296, allocations: 0 / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.0003712/0.33, allocations: 109.5 kB / 1.021 GB, free: 7.613 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.3301, allocations: 55.41 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.354e-05/0.3302, allocations: 109.8 kB / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3302, allocations: 29.64 kB / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.3303, allocations: 92.12 kB / 1.021 GB, free: 7.301 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3303, allocations: 7.812 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.3303, allocations: 21.72 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.3305, allocations: 318.8 kB / 1.021 GB, free: 6.945 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.325e-05/0.3306, allocations: 19.98 kB / 1.021 GB, free: 6.926 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.3307, allocations: 51.41 kB / 1.021 GB, free: 6.863 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/0.3309, allocations: 75.28 kB / 1.021 GB, free: 6.777 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3309, allocations: 7.984 kB / 1.021 GB, free: 6.77 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00025/0.3312, allocations: 97.53 kB / 1.021 GB, free: 6.668 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3312, allocations: 8 kB / 1.021 GB, free: 6.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3312, allocations: 0 / 1.021 GB, free: 6.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.3312, allocations: 0 / 1.021 GB, free: 6.66 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.3313, allocations: 15.98 kB / 1.021 GB, free: 6.645 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3313, allocations: 0 / 1.021 GB, free: 6.645 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.923e-05/0.3314, allocations: 19.95 kB / 1.021 GB, free: 6.625 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.3315, allocations: 7.984 kB / 1.022 GB, free: 6.617 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 9.002e-05/0.3315, allocations: 118.3 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.3316, allocations: 0 / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.3318, allocations: 93.55 kB / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3318, allocations: 0 / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3319, allocations: 0 / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.3319, allocations: 8 kB / 1.022 GB, free: 6.383 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004244/0.3323, allocations: 342.8 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3323, allocations: 4.062 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.938e-05/0.3324, allocations: 11.98 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3324, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.3324, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3324, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3324, allocations: 4 kB / 1.022 GB, free: 5.973 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.3327, allocations: 187.3 kB / 1.022 GB, free: 5.773 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.697e-05/0.3327, allocations: 81.05 kB / 1.022 GB, free: 5.676 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.3328, allocations: 4 kB / 1.022 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.89e-05/0.3328, allocations: 3.984 kB / 1.022 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.3329, allocations: 8 kB / 1.022 GB, free: 5.66 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.3329, allocations: 11.88 kB / 1.022 GB, free: 5.648 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.124e-05/0.333, allocations: 95.66 kB / 1.022 GB, free: 5.555 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.333, allocations: 0 / 1.022 GB, free: 5.555 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002367/0.3332, allocations: 12 kB / 1.022 GB, free: 5.543 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.0001504/0.3334, allocations: 99.25 kB / 1.023 GB, free: 5.434 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.3336, allocations: 68 kB / 1.023 GB, free: 5.367 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3336, allocations: 0 / 1.023 GB, free: 5.367 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.3337, allocations: 27.98 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.334, allocations: 8 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003507/0.3344, allocations: 171.7 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.3347, allocations: 0.687 MB / 1.023 GB, free: 4.422 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.3347, allocations: 7.438 kB / 1.023 GB, free: 4.418 MB / 0.795 GB Notification: Performance of SimCode: time 2.9e-07/0.3347, allocations: 4 kB / 1.023 GB, free: 4.414 MB / 0.795 GB Notification: Performance of Templates: time 0.002456/0.3372, allocations: 0.8221 MB / 1.024 GB, free: 3.594 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=400 -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