Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002278/0.002278, allocations: 213.2 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.521/1.521, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.735/2.735, allocations: 476 MB / 0.7707 GB, free: 4.711 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_11_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_11_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 64.97 kB / 1.118 GB, free: 41.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2991, allocations: 170 MB / 1.284 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002873/0.302, allocations: 1.453 MB / 1.285 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009226/0.3029, allocations: 436.7 kB / 1.286 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.953e-05/0.303, allocations: 4 kB / 1.286 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.303, allocations: 3.938 kB / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.05e-05/0.3031, allocations: 15.86 kB / 1.286 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.3032, allocations: 15.92 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.3034, allocations: 55.84 kB / 1.286 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.903e-05/0.3035, allocations: 4 kB / 1.286 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.174e-05/0.3035, allocations: 27.86 kB / 1.286 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.518e-05/0.3036, allocations: 19.91 kB / 1.286 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.3036, allocations: 4 kB / 1.286 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.302e-05/0.3036, allocations: 4 kB / 1.286 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.3037, allocations: 7.922 kB / 1.286 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.723e-05/0.3037, allocations: 15.94 kB / 1.286 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.3038, allocations: 47.81 kB / 1.286 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3038, allocations: 0 / 1.286 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3038, allocations: 0 / 1.286 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.3038, allocations: 4 kB / 1.286 GB, free: 9.824 MB / 0.9825 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.0006074/0.3045, allocations: 319.9 kB / 1.286 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3045, allocations: 12.03 kB / 1.286 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.3045, allocations: 0.9375 kB / 1.286 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.3046, allocations: 114.5 kB / 1.286 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3047, allocations: 4.375 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.3047, allocations: 4.312 kB / 1.286 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.3048, allocations: 83.7 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3048, allocations: 7.984 kB / 1.286 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.3049, allocations: 3.938 kB / 1.286 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3049, allocations: 0 / 1.286 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.431e-05/0.3049, allocations: 45.7 kB / 1.286 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003777/0.3053, allocations: 208.6 kB / 1.287 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.3054, allocations: 76.12 kB / 1.287 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.44e-05/0.3055, allocations: 42.69 kB / 1.287 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.3055, allocations: 0 / 1.287 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.3057, allocations: 134.8 kB / 1.287 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.3057, allocations: 0 / 1.287 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003377/0.3061, allocations: 203 kB / 1.287 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.3061, allocations: 81.11 kB / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.3062, allocations: 109.8 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.3063, allocations: 37.62 kB / 1.287 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.3063, allocations: 88.09 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.3063, allocations: 15.84 kB / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.3064, allocations: 29.7 kB / 1.287 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3065, allocations: 318.8 kB / 1.288 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.323e-05/0.3066, allocations: 41.69 kB / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.665e-05/0.3067, allocations: 76.14 kB / 1.288 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001207/0.3068, allocations: 118.4 kB / 1.288 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3068, allocations: 3.938 kB / 1.288 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002009/0.307, allocations: 161 kB / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.586e-05/0.307, allocations: 31.89 kB / 1.288 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.307, allocations: 0 / 1.288 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.307, allocations: 4 kB / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.618e-05/0.3071, allocations: 11.92 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.82e-06/0.3071, allocations: 0 / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.433e-05/0.3071, allocations: 8.062 kB / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.876e-06/0.3072, allocations: 4 kB / 1.288 GB, free: 7.176 MB / 0.9825 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.0001262/0.3073, allocations: 156.6 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.3073, allocations: 7.953 kB / 1.288 GB, free: 7 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.653e-05/0.3073, allocations: 4.375 kB / 1.288 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.3073, allocations: 0 / 1.288 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.3073, allocations: 8 kB / 1.288 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3073, allocations: 4 kB / 1.288 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004169/0.3078, allocations: 373.5 kB / 1.289 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.3078, allocations: 0 / 1.289 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-06/0.3078, allocations: 4 kB / 1.289 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.3078, allocations: 0 / 1.289 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.3078, allocations: 8 kB / 1.289 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3078, allocations: 3.938 kB / 1.289 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3078, allocations: 0 / 1.289 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.308, allocations: 266.8 kB / 1.289 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.3081, allocations: 8 kB / 1.289 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3081, allocations: 0 / 1.289 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.3082, allocations: 11.98 kB / 1.289 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.902e-05/0.3082, allocations: 8 kB / 1.289 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.3083, allocations: 7.984 kB / 1.289 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.15e-05/0.3083, allocations: 91.22 kB / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3083, allocations: 0 / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002546/0.3086, allocations: 12 kB / 1.289 GB, free: 6.125 MB / 0.9825 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.0001175/0.3087, allocations: 103.2 kB / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002619/0.309, allocations: 170.7 kB / 1.289 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.309, allocations: 0 / 1.289 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.3091, allocations: 113.1 kB / 1.289 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3094, allocations: 16.06 kB / 1.289 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003721/0.3098, allocations: 209 kB / 1.29 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.881e-05/0.3098, allocations: 71.33 kB / 1.29 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.3099, allocations: 11.44 kB / 1.29 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.3099, allocations: 0 / 1.29 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of Templates: time 0.002568/0.3124, allocations: 0.9168 MB / 1.291 GB, free: 4.43 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.809872023295611]