Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.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.001807/0.001807, 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.002278/0.002278, 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.471/1.471, allocations: 225.6 MB / 249.4 MB, free: 3.293 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.603/2.603, allocations: 443.4 MB / 0.7304 GB, free: 13.89 MB / 0.5762 GB " [Timeout remaining time 177] 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.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 64.08 kB / 1.059 GB, free: 460 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3791, allocations: 160.7 MB / 1.216 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002976/0.3821, allocations: 1.443 MB / 1.217 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000877/0.383, allocations: 443.9 kB / 1.218 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.523e-05/0.383, allocations: 0 / 1.218 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.254e-05/0.3831, allocations: 3.938 kB / 1.218 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.336e-05/0.3831, allocations: 11.92 kB / 1.218 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.3833, allocations: 19.92 kB / 1.218 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.3835, allocations: 55.78 kB / 1.218 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.829e-05/0.3835, allocations: 7.938 kB / 1.218 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.52e-05/0.3836, allocations: 27.86 kB / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.981e-05/0.3837, allocations: 19.91 kB / 1.218 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.3837, allocations: 4 kB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.217e-05/0.3837, allocations: 8 kB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.3837, allocations: 11.98 kB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.276e-05/0.3838, allocations: 15.88 kB / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.3839, allocations: 43.81 kB / 1.218 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3839, allocations: 0 / 1.218 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3839, allocations: 0 / 1.218 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.3839, allocations: 0 / 1.218 GB, free: 13.29 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006952/0.3846, allocations: 405 kB / 1.219 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.3847, allocations: 8.031 kB / 1.219 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.3847, allocations: 12.83 kB / 1.219 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.3848, allocations: 172.3 kB / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.3849, allocations: 384 / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.3849, allocations: 4.375 kB / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.385, allocations: 57.98 kB / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.385, allocations: 0 / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.385, allocations: 0 / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.385, allocations: 4 kB / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.044e-05/0.3851, allocations: 23.98 kB / 1.219 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004508/0.3856, allocations: 276.7 kB / 1.219 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.668e-05/0.3856, allocations: 30.58 kB / 1.219 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.242e-05/0.3857, allocations: 20.97 kB / 1.219 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.3857, allocations: 0 / 1.219 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/0.3859, allocations: 105.2 kB / 1.219 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.3859, allocations: 0 / 1.219 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0003055/0.3862, allocations: 143.3 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.3863, allocations: 81.09 kB / 1.219 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.821e-05/0.3864, allocations: 113.8 kB / 1.22 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.3864, allocations: 25.98 kB / 1.22 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.3865, allocations: 88.14 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.3865, allocations: 15.84 kB / 1.22 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.3865, allocations: 41.58 kB / 1.22 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3867, allocations: 318.8 kB / 1.22 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.98e-05/0.3867, allocations: 15.98 kB / 1.22 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-05/0.3868, allocations: 38.56 kB / 1.22 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.3869, allocations: 113.9 kB / 1.22 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3869, allocations: 4 kB / 1.22 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001679/0.3871, allocations: 127.7 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.3871, allocations: 29.7 kB / 1.22 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3871, allocations: 0 / 1.22 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3871, allocations: 4 kB / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.4e-05/0.3872, allocations: 0 / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.3872, allocations: 7.984 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.419e-05/0.3872, allocations: 15.92 kB / 1.22 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.3873, allocations: 4 kB / 1.22 GB, free: 10.73 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001376/0.3874, allocations: 154.4 kB / 1.22 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.3874, allocations: 7.953 kB / 1.22 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.3874, allocations: 12.36 kB / 1.221 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3875, allocations: 0 / 1.221 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3875, allocations: 0 / 1.221 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3875, allocations: 7.922 kB / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.3879, allocations: 400.2 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3879, allocations: 3.938 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.175e-06/0.3879, allocations: 4 kB / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3879, allocations: 4 kB / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.3879, allocations: 0 / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.3879, allocations: 4 kB / 1.221 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3879, allocations: 3.984 kB / 1.221 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.3882, allocations: 237.1 kB / 1.221 GB, free: 9.816 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.3882, allocations: 81.16 kB / 1.221 GB, free: 9.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.3883, allocations: 8 kB / 1.221 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3884, allocations: 15.98 kB / 1.221 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.3884, allocations: 11.94 kB / 1.221 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.3884, allocations: 4 kB / 1.221 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.391e-05/0.3885, allocations: 87.27 kB / 1.221 GB, free: 9.594 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3885, allocations: 0 / 1.221 GB, free: 9.594 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002352/0.3887, allocations: 16 kB / 1.221 GB, free: 9.578 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0001171/0.3888, allocations: 101 kB / 1.221 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002022/0.389, allocations: 111.3 kB / 1.222 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.389, allocations: 4 kB / 1.222 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.769e-05/0.3891, allocations: 79.39 kB / 1.222 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.3894, allocations: 11.98 kB / 1.222 GB, free: 9.246 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.3898, allocations: 157.2 kB / 1.222 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.3901, allocations: 0.6923 MB / 1.222 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.963e-05/0.3902, allocations: 8.125 kB / 1.222 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.3902, allocations: 11.44 kB / 1.222 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of SimCode: time 5.31e-07/0.3902, allocations: 3.938 kB / 1.222 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of Templates: time 0.003664/0.3939, allocations: 0.8795 MB / 1.223 GB, free: 7.445 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.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.266806479543447]