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.001337/0.001337, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001435/0.001435, allocations: 219.9 kB / 23.01 MB, free: 4.605 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.135/3.135, allocations: 0.49 GB / 0.7958 GB, free: 33.64 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.002047/0.002047, allocations: 69.33 kB / 1.155 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.346, allocations: 176.1 MB / 1.327 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00274/0.3488, allocations: 1.454 MB / 1.329 GB, free: 8 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008806/0.3497, allocations: 478.8 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.161e-05/0.3497, allocations: 4 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.949e-05/0.3497, allocations: 3.938 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.128e-05/0.3498, allocations: 11.86 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.35, allocations: 27.91 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000126/0.3501, allocations: 47.8 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.331e-05/0.3502, allocations: 15.98 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.252e-05/0.3503, allocations: 15.94 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.801e-05/0.3503, allocations: 19.86 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.3503, allocations: 4 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 1.249e-05/0.3504, allocations: 4 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.578e-05/0.3504, allocations: 7.984 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.361e-05/0.3504, allocations: 27.86 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3506, allocations: 39.83 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3506, allocations: 0 / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3506, allocations: 0 / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.3506, allocations: 4 kB / 1.329 GB, free: 15.3 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.0006219/0.3512, allocations: 323.8 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.3512, allocations: 8.031 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.3513, allocations: 4.938 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.3514, allocations: 118.4 kB / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.3514, allocations: 8.375 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.3514, allocations: 384 / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.3515, allocations: 57.98 kB / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.3516, allocations: 0 / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.3516, allocations: 3.984 kB / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3516, allocations: 4 kB / 1.33 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.645e-05/0.3516, allocations: 19.94 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004012/0.352, allocations: 239.9 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.318e-05/0.3521, allocations: 38.52 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.98e-05/0.3522, allocations: 28.97 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.3522, allocations: 0 / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/0.3524, allocations: 101 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.203e-06/0.3524, allocations: 0 / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0002906/0.3527, allocations: 143.7 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.185e-05/0.3527, allocations: 81.11 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.299e-05/0.3528, allocations: 109.8 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.3529, allocations: 41.62 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.3529, allocations: 88.09 kB / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.3529, allocations: 15.84 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.353, allocations: 29.7 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3531, allocations: 314.8 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.886e-05/0.3532, allocations: 27.92 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.624e-05/0.3532, allocations: 30.56 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.3533, allocations: 110 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3533, allocations: 0 / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001789/0.3535, allocations: 131.3 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.3536, allocations: 37.69 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3536, allocations: 3.938 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.3536, allocations: 0 / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.316e-05/0.3536, allocations: 4 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.3536, allocations: 4.453 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.4e-05/0.3537, allocations: 7.984 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.3537, allocations: 8 kB / 1.331 GB, free: 12.95 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.0001201/0.3538, allocations: 148 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.3538, allocations: 7.953 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.673e-05/0.3539, allocations: 8.375 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.3539, allocations: 7.984 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.3539, allocations: 0 / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3539, allocations: 4 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.3543, allocations: 371.2 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3543, allocations: 0 / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.999e-06/0.3543, allocations: 3.938 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.3543, allocations: 0 / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3543, allocations: 4 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3543, allocations: 0 / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3543, allocations: 0 / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.3546, allocations: 241.2 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.551e-05/0.3546, allocations: 11.95 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.3546, allocations: 3.984 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.3547, allocations: 8 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.219e-05/0.3548, allocations: 11.86 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.3548, allocations: 8.062 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.807e-05/0.3548, allocations: 95.33 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3548, allocations: 0 / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002445/0.3551, allocations: 12 kB / 1.332 GB, free: 11.93 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.0001345/0.3552, allocations: 104.8 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001935/0.3554, allocations: 115.3 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3554, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.539e-05/0.3555, allocations: 79.39 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.3558, allocations: 16.03 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.3562, allocations: 175.4 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.3565, allocations: 0.6962 MB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.282e-05/0.3566, allocations: 11.44 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.3566, allocations: 0 / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of Templates: time 0.002612/0.3592, allocations: 0.8935 MB / 1.334 GB, free: 9.758 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.057498750014929]