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.001699/0.001699, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002086/0.002086, allocations: 211.5 kB / 22.99 MB, free: 4.953 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.451/1.451, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.193/3.193, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 176] 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.00204/0.00204, allocations: 78.17 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3209, allocations: 176.1 MB / 1.327 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002646/0.3236, allocations: 1.441 MB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0008468/0.3244, allocations: 447 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.029e-05/0.3245, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.499e-05/0.3245, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.733e-05/0.3246, allocations: 11.88 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.3248, allocations: 23.91 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.3249, allocations: 55.78 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.373e-05/0.325, allocations: 15.94 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.271e-05/0.325, allocations: 15.98 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.795e-05/0.3251, allocations: 23.86 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.3251, allocations: 4 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 1.084e-05/0.3252, allocations: 0 / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.334e-05/0.3252, allocations: 8 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.795e-05/0.3252, allocations: 23.84 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.3254, allocations: 47.77 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3254, allocations: 0 / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3254, allocations: 0 / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.085e-05/0.3254, allocations: 0 / 1.329 GB, free: 14.93 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.0007108/0.3261, allocations: 323.9 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3261, allocations: 8.031 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.3262, allocations: 4.938 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.3263, allocations: 122.5 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3263, allocations: 384 / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.3263, allocations: 4.375 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.3265, allocations: 79.7 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.3265, allocations: 0 / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3265, allocations: 8 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3265, allocations: 7.938 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.74e-05/0.3266, allocations: 45.69 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000437/0.3271, allocations: 204.6 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.3272, allocations: 64.22 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.875e-05/0.3272, allocations: 50.67 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.3273, allocations: 4 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.3275, allocations: 134.7 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.3275, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.00036/0.3279, allocations: 202.8 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.3279, allocations: 81.11 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.3281, allocations: 117.9 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.3281, allocations: 25.98 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.988e-05/0.3281, allocations: 92.08 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.3282, allocations: 19.84 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.3282, allocations: 29.66 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3284, allocations: 314.8 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.925e-05/0.3285, allocations: 49.69 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.937e-05/0.3285, allocations: 68.2 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.3287, allocations: 113.9 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3287, allocations: 3.938 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002108/0.3289, allocations: 161 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.292e-05/0.3289, allocations: 39.11 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3289, allocations: 0 / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3289, allocations: 0 / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.764e-05/0.329, allocations: 4 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.329, allocations: 0 / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.001e-05/0.3291, allocations: 11.98 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.3291, allocations: 8 kB / 1.331 GB, free: 12.28 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.0001353/0.3292, allocations: 148 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.3292, allocations: 11.94 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.406e-05/0.3293, allocations: 12.38 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3293, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3293, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3293, allocations: 3.984 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.3297, allocations: 365.5 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3297, allocations: 3.984 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.416e-06/0.3297, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.327e-05/0.3297, allocations: 8 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.3297, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3297, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3297, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.33, allocations: 270.8 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.254e-05/0.33, allocations: 4.047 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.33, allocations: 19.98 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3301, allocations: 4 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.211e-05/0.3302, allocations: 7.984 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.3302, allocations: 4 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.451e-05/0.3303, allocations: 91.27 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3303, allocations: 3.938 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002435/0.3305, allocations: 20 kB / 1.332 GB, free: 11.22 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.0001081/0.3306, allocations: 99.19 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002334/0.3309, allocations: 166.7 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3309, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.331, allocations: 113 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3313, allocations: 21.48 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003764/0.3316, allocations: 175.4 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.65e-05/0.3317, allocations: 71.33 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.139e-05/0.3318, allocations: 4 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.716e-05/0.3318, allocations: 15.44 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3318, allocations: 0 / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of Templates: time 0.003729/0.3355, allocations: 0.9624 MB / 1.334 GB, free: 9.535 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 -s gbode -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: 8.632160412002122]