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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002179/0.002179, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 225.6 MB / 249.4 MB, free: 3.145 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.738/2.738, allocations: 443.4 MB / 0.7304 GB, free: 13.88 MB / 0.5762 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 71.88 kB / 1.059 GB, free: 384 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3784, allocations: 160.7 MB / 1.216 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002262/0.3806, allocations: 0.6805 MB / 1.217 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3823, allocations: 1.067 MB / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.912e-05/0.3824, allocations: 3.938 kB / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.318e-05/0.3824, allocations: 0 / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.493e-05/0.3825, allocations: 7.938 kB / 1.218 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.3828, allocations: 39.83 kB / 1.218 GB, free: 13.53 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.3829, allocations: 39.91 kB / 1.218 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.383, allocations: 8 kB / 1.218 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.294e-05/0.3831, allocations: 23.86 kB / 1.218 GB, free: 13.46 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.011e-05/0.3832, allocations: 23.92 kB / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.3832, allocations: 4 kB / 1.218 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.115e-05/0.3833, allocations: 19.97 kB / 1.218 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.006e-05/0.3833, allocations: 11.92 kB / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.3833, allocations: 15.94 kB / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.3836, allocations: 59.72 kB / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3836, allocations: 0 / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3836, allocations: 0 / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.3836, allocations: 0 / 1.218 GB, free: 13.33 MB / 0.9669 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.0006988/0.3843, allocations: 363.3 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3843, allocations: 8.031 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.3844, allocations: 8.922 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.3845, allocations: 164.3 kB / 1.219 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.3845, allocations: 8.312 kB / 1.219 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.3845, allocations: 4.375 kB / 1.219 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.3848, allocations: 54.23 kB / 1.219 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3848, allocations: 192 / 1.219 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.3848, allocations: 3.938 kB / 1.219 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3848, allocations: 8 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.385, allocations: 39.95 kB / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.3855, allocations: 273 kB / 1.219 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.3857, allocations: 42.44 kB / 1.219 GB, free: 12.22 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.598e-05/0.3858, allocations: 32.92 kB / 1.219 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.3858, allocations: 0 / 1.219 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/0.386, allocations: 67.39 kB / 1.219 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.386, allocations: 0 / 1.219 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0004019/0.3864, allocations: 121.5 kB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3865, allocations: 51.41 kB / 1.219 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.3866, allocations: 109.8 kB / 1.219 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.3866, allocations: 29.7 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3867, allocations: 88.12 kB / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.3867, allocations: 11.91 kB / 1.219 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.3868, allocations: 25.7 kB / 1.22 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001835/0.387, allocations: 310.8 kB / 1.22 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.632e-05/0.3871, allocations: 31.91 kB / 1.22 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.3872, allocations: 51.41 kB / 1.22 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.3874, allocations: 75.28 kB / 1.22 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3874, allocations: 0 / 1.22 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002588/0.3876, allocations: 101.5 kB / 1.22 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3877, allocations: 13.5 kB / 1.22 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3877, allocations: 3.938 kB / 1.22 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3877, allocations: 4.125 kB / 1.22 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3878, allocations: 15.98 kB / 1.22 GB, free: 11 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3878, allocations: 0 / 1.22 GB, free: 11 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.273e-05/0.3879, allocations: 8 kB / 1.22 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.3879, allocations: 7.984 kB / 1.22 GB, free: 10.98 MB / 0.9669 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.772e-05/0.388, allocations: 117.8 kB / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.388, allocations: 3.953 kB / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/0.3884, allocations: 97.55 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3884, allocations: 0 / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3884, allocations: 4 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3884, allocations: 0 / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.3889, allocations: 338.4 kB / 1.221 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3889, allocations: 0 / 1.221 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.806e-05/0.3889, allocations: 11.98 kB / 1.221 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3889, allocations: 4 kB / 1.221 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3889, allocations: 0 / 1.221 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3889, allocations: 0 / 1.221 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3889, allocations: 0 / 1.221 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.3892, allocations: 183.8 kB / 1.221 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.72e-05/0.3893, allocations: 89.03 kB / 1.221 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3893, allocations: 8 kB / 1.221 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.3894, allocations: 8 kB / 1.221 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.3894, allocations: 3.984 kB / 1.221 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.3894, allocations: 3.938 kB / 1.221 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.312e-05/0.3895, allocations: 87.28 kB / 1.221 GB, free: 9.934 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3895, allocations: 0 / 1.221 GB, free: 9.934 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002371/0.3897, allocations: 15.92 kB / 1.221 GB, free: 9.918 MB / 0.9669 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.0001783/0.3899, allocations: 99.25 kB / 1.221 GB, free: 9.812 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.3901, allocations: 59.95 kB / 1.221 GB, free: 9.754 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3901, allocations: 3.938 kB / 1.221 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.3902, allocations: 23.97 kB / 1.221 GB, free: 9.727 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.3905, allocations: 11.94 kB / 1.221 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.3909, allocations: 154.1 kB / 1.221 GB, free: 9.539 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.3913, allocations: 0.6807 MB / 1.222 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.3913, allocations: 7.938 kB / 1.222 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.3913, allocations: 7.438 kB / 1.222 GB, free: 8.816 MB / 0.9669 GB Notification: Performance of SimCode: time 4.3e-07/0.3913, allocations: 4 kB / 1.222 GB, free: 8.812 MB / 0.9669 GB Notification: Performance of Templates: time 0.003754/0.3951, allocations: 0.7585 MB / 1.223 GB, free: 8.062 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile [Timeout 300] (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) [Timeout 400] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.873139217495918]