Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001233/0.001233, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001359/0.001359, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8677/0.8677, allocations: 177.1 MB / 203.5 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.752/1.752, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 3.938 kB / 1.001 GB, free: 13.07 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.714e-05/1.854e-05, allocations: 9.172 kB / 1.001 GB, free: 13.06 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001639/0.001658, allocations: 1.44 MB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0005658/0.002223, allocations: 439.6 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.74e-05/0.002261, allocations: 0 / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.002287, allocations: 7.938 kB / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.471e-05/0.002361, allocations: 19.84 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.002502, allocations: 15.98 kB / 1.003 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.002607, allocations: 47.86 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.622e-05/0.002693, allocations: 7.969 kB / 1.003 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.392e-05/0.002767, allocations: 31.86 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.962e-05/0.002826, allocations: 15.92 kB / 1.003 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.002846, allocations: 4 kB / 1.003 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.002856, allocations: 4 kB / 1.003 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.393e-05/0.00288, allocations: 11.98 kB / 1.003 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.664e-05/0.002917, allocations: 19.92 kB / 1.003 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.00302, allocations: 39.89 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.003023, allocations: 3.984 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.12e-07/0.003024, allocations: 0 / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.003027, allocations: 0 / 1.003 GB, free: 10.95 MB / 0.9636 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.0004358/0.003463, allocations: 315.9 kB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.003497, allocations: 8.75 kB / 1.003 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.003531, allocations: 8.891 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.231e-05/0.003613, allocations: 125.7 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.003624, allocations: 384 / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.003634, allocations: 12.31 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.003748, allocations: 87.86 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.003756, allocations: 192 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.003765, allocations: 384 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.00377, allocations: 3.938 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.325e-05/0.003823, allocations: 53.67 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002883/0.004112, allocations: 200.6 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 7.29e-05/0.004184, allocations: 72.2 kB / 1.004 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.368e-05/0.004218, allocations: 54.67 kB / 1.004 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.004235, allocations: 4 kB / 1.004 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.004363, allocations: 122.7 kB / 1.004 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=9): time 1.042e-06/0.004364, allocations: 4 kB / 1.004 GB, free: 9.742 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9): time 0.0002343/0.004598, allocations: 214.7 kB / 1.004 GB, free: 9.508 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.004646, allocations: 77.11 kB / 1.004 GB, free: 9.414 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.032e-05/0.004706, allocations: 109.8 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.004718, allocations: 29.7 kB / 1.004 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.378e-05/0.004752, allocations: 84.14 kB / 1.004 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.004768, allocations: 19.8 kB / 1.004 GB, free: 9.156 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.004799, allocations: 37.7 kB / 1.004 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.812e-05/0.004868, allocations: 314.8 kB / 1.005 GB, free: 8.797 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.224e-05/0.0049, allocations: 45.7 kB / 1.005 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.085e-05/0.004941, allocations: 68.2 kB / 1.005 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.2e-05/0.005013, allocations: 110 kB / 1.005 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.005015, allocations: 0 / 1.005 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001114/0.005126, allocations: 160.9 kB / 1.005 GB, free: 8.359 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.005151, allocations: 37.69 kB / 1.005 GB, free: 8.316 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.005156, allocations: 64 / 1.005 GB, free: 8.316 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.005166, allocations: 4 kB / 1.005 GB, free: 8.312 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.867e-05/0.005204, allocations: 11.94 kB / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.005209, allocations: 0 / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.943e-05/0.005249, allocations: 4 kB / 1.005 GB, free: 8.297 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-06/0.005255, allocations: 7.984 kB / 1.005 GB, free: 8.289 MB / 0.9636 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 6.569e-05/0.005321, allocations: 143.5 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.005331, allocations: 11.89 kB / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.946e-05/0.00535, allocations: 16.38 kB / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.005352, allocations: 0 / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.005356, allocations: 4 kB / 1.005 GB, free: 8.102 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.00536, allocations: 3.984 kB / 1.005 GB, free: 8.098 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.005629, allocations: 365.5 kB / 1.006 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.005631, allocations: 0 / 1.006 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-06/0.005634, allocations: 384 / 1.006 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.005636, allocations: 0 / 1.006 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.005643, allocations: 4 kB / 1.006 GB, free: 7.688 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.005646, allocations: 7.922 kB / 1.006 GB, free: 7.68 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.005648, allocations: 8 kB / 1.006 GB, free: 7.672 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.005784, allocations: 266.8 kB / 1.006 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.622e-06/0.005791, allocations: 0 / 1.006 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.005804, allocations: 8 kB / 1.006 GB, free: 7.375 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.784e-05/0.005862, allocations: 11.98 kB / 1.006 GB, free: 7.363 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.005901, allocations: 7.984 kB / 1.006 GB, free: 7.355 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.005913, allocations: 4 kB / 1.006 GB, free: 7.352 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.019e-05/0.005943, allocations: 87.22 kB / 1.006 GB, free: 7.266 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.005943, allocations: 0 / 1.006 GB, free: 7.266 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001521/0.006095, allocations: 19.98 kB / 1.006 GB, free: 7.246 MB / 0.9636 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 7.029e-05/0.006166, allocations: 99.25 kB / 1.006 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001472/0.006313, allocations: 174.7 kB / 1.006 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.006314, allocations: 0 / 1.006 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.962e-05/0.006374, allocations: 109.9 kB / 1.006 GB, free: 6.816 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.006582, allocations: 19.92 kB / 1.007 GB, free: 6.797 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.006921, allocations: 200.2 kB / 1.007 GB, free: 6.562 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.269e-05/0.006964, allocations: 67.34 kB / 1.007 GB, free: 6.477 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.006987, allocations: 12.5 kB / 1.007 GB, free: 6.465 MB / 0.9636 GB Notification: Performance of SimCode: time 7.41e-07/0.006987, allocations: 0 / 1.007 GB, free: 6.465 MB / 0.9636 GB Notification: Performance of Templates: time 0.001618/0.008606, allocations: 0.9297 MB / 1.008 GB, free: 5.535 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.3869816260412335]