Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001557/0.001557, 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.001894/0.001894, allocations: 215.6 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.171/3.171, allocations: 0.4892 GB / 0.7951 GB, free: 35.62 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002073/0.002073, allocations: 70.48 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3318, allocations: 176.1 MB / 1.326 GB, free: 1.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002756/0.3345, allocations: 1.445 MB / 1.328 GB, free: 456 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008773/0.3354, allocations: 446.9 kB / 1.328 GB, free: 4 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.377e-05/0.3354, allocations: 4 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.672e-05/0.3355, allocations: 4.047 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.432e-05/0.3356, allocations: 11.86 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.3357, allocations: 23.97 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.3359, allocations: 47.86 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.046e-05/0.3359, allocations: 11.98 kB / 1.328 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.453e-05/0.336, allocations: 19.77 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.712e-05/0.3361, allocations: 15.92 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.3361, allocations: 4 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 1.385e-05/0.3361, allocations: 4 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.093e-05/0.3361, allocations: 11.92 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.62e-05/0.3362, allocations: 19.92 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3363, allocations: 39.83 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.3363, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3363, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.046e-05/0.3363, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 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.0006409/0.337, allocations: 331.7 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.337, allocations: 12.03 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.3371, allocations: 0.9375 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.3372, allocations: 114.5 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3372, allocations: 4.375 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.3372, allocations: 12.31 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.3374, allocations: 83.69 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3374, allocations: 0 / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3374, allocations: 4 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3374, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.282e-05/0.3375, allocations: 45.69 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003734/0.3378, allocations: 208.5 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.338, allocations: 68.2 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.336e-05/0.338, allocations: 46.67 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.338, allocations: 0 / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.3382, allocations: 134.7 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 3.015e-06/0.3382, allocations: 7.984 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003445/0.3386, allocations: 198.8 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.3386, allocations: 89.05 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.3388, allocations: 113.8 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.3388, allocations: 25.7 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.595e-05/0.3388, allocations: 84.14 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.3389, allocations: 19.84 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.3389, allocations: 25.7 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.339, allocations: 318.8 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.614e-05/0.3391, allocations: 45.69 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.025e-05/0.3392, allocations: 68.27 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.3393, allocations: 118.3 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3393, allocations: 3.938 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002127/0.3395, allocations: 161.3 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.3396, allocations: 33.69 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3396, allocations: 4 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.3396, allocations: 0 / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.389e-05/0.3396, allocations: 7.938 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.3396, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.472e-05/0.3397, allocations: 12.06 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.3397, allocations: 4 kB / 1.331 GB, free: 13.13 MB / 1.029 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.0001312/0.3398, allocations: 159.4 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.3398, allocations: 11.89 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/0.3399, allocations: 8.375 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3399, allocations: 0 / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3399, allocations: 4 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.3399, allocations: 3.984 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004193/0.3403, allocations: 369.6 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3403, allocations: 4 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-06/0.3403, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3403, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.3403, allocations: 4 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3403, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3403, allocations: 3.984 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.3406, allocations: 266.8 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.575e-05/0.3406, allocations: 7.953 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.3406, allocations: 0 / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3408, allocations: 15.98 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.3408, allocations: 7.984 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3408, allocations: 4 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.3409, allocations: 87.28 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3409, allocations: 0 / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002362/0.3411, allocations: 12 kB / 1.332 GB, free: 12.09 MB / 1.029 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.0001067/0.3412, allocations: 113.4 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002305/0.3414, allocations: 166.7 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3414, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.3415, allocations: 117 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.3418, allocations: 24.05 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003821/0.3422, allocations: 197 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.22e-05/0.3423, allocations: 68.09 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.26e-05/0.3423, allocations: 11.44 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of SimCode: time 4.51e-07/0.3423, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of Templates: time 0.002607/0.3449, allocations: 0.9137 MB / 1.333 GB, free: 10.38 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.077997714281082]