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.001194/0.001194, allocations: 81.86 kB / 20.68 MB, free: 3.816 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.001257/0.001257, allocations: 181 kB / 24.09 MB, free: 416 kB / 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.9343/0.9343, allocations: 177.1 MB / 204.5 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.695/1.695, allocations: 359 MB / 0.6055 GB, free: 10.86 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 0.7875 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.585e-05/1.772e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002495/0.002513, allocations: 1.494 MB / 0.789 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0007675/0.00328, allocations: 464.8 kB / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.003324, allocations: 1.062 kB / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.885e-05/0.003353, allocations: 3.984 kB / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.709e-05/0.00344, allocations: 7.875 kB / 0.7894 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001414/0.003582, allocations: 25.42 kB / 0.7894 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.003691, allocations: 55.77 kB / 0.7895 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.747e-05/0.003769, allocations: 4 kB / 0.7895 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.377e-05/0.003853, allocations: 23.98 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.412e-05/0.003917, allocations: 22.38 kB / 0.7895 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.003938, allocations: 4 kB / 0.7895 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 1.16e-05/0.00395, allocations: 4 kB / 0.7895 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.003973, allocations: 4 kB / 0.7895 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.004009, allocations: 19.92 kB / 0.7896 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 9.764e-05/0.004107, allocations: 23.97 kB / 0.7896 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.004111, allocations: 13.67 kB / 0.7896 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.81e-07/0.004112, allocations: 3.938 kB / 0.7896 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.00412, allocations: 0 / 0.7896 GB, free: 10.1 MB / 0.7448 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.0004699/0.004589, allocations: 414.8 kB / 0.79 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.004628, allocations: 13.31 kB / 0.79 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.004663, allocations: 8.891 kB / 0.79 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.977e-05/0.004743, allocations: 120.5 kB / 0.7901 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.004754, allocations: 384 / 0.7901 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.004763, allocations: 5.625 kB / 0.7901 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.806e-05/0.004861, allocations: 67.95 kB / 0.7902 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.004869, allocations: 4.188 kB / 0.7902 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.004878, allocations: 5.266 kB / 0.7902 GB, free: 9.398 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.004884, allocations: 3.938 kB / 0.7902 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.749e-05/0.004922, allocations: 38.45 kB / 0.7903 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003412/0.005263, allocations: 248.5 kB / 0.7905 GB, free: 9.082 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.629e-05/0.005329, allocations: 63.36 kB / 0.7906 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.005367, allocations: 49.36 kB / 0.7906 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.005385, allocations: 0 / 0.7906 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/0.00551, allocations: 136.5 kB / 0.7907 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.005511, allocations: 0 / 0.7907 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9): time 0.0002316/0.005743, allocations: 190.5 kB / 0.7909 GB, free: 8.574 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.005792, allocations: 77.64 kB / 0.791 GB, free: 8.48 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.136e-05/0.005874, allocations: 169.9 kB / 0.7911 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.005888, allocations: 30.42 kB / 0.7912 GB, free: 8.262 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.005934, allocations: 134.8 kB / 0.7913 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.005956, allocations: 24.33 kB / 0.7913 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.005998, allocations: 33.02 kB / 0.7914 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.006127, allocations: 0.4923 MB / 0.7918 GB, free: 7.559 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.352e-05/0.006181, allocations: 37.69 kB / 0.7919 GB, free: 7.516 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.414e-05/0.006225, allocations: 64.75 kB / 0.7919 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.83e-05/0.006303, allocations: 111.8 kB / 0.792 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.006305, allocations: 0 / 0.792 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001354/0.00644, allocations: 142.6 kB / 0.7922 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.006468, allocations: 37.58 kB / 0.7922 GB, free: 7.102 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.006473, allocations: 5.375 kB / 0.7922 GB, free: 7.098 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.006484, allocations: 0 / 0.7922 GB, free: 7.098 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.756e-05/0.006522, allocations: 12.06 kB / 0.7922 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.006526, allocations: 3.984 kB / 0.7922 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.006571, allocations: 13.69 kB / 0.7922 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.006578, allocations: 4 kB / 0.7923 GB, free: 7.066 MB / 0.7448 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 9.793e-05/0.006676, allocations: 200.6 kB / 0.7924 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.006693, allocations: 8 kB / 0.7925 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.006717, allocations: 17.64 kB / 0.7925 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.006719, allocations: 0 / 0.7925 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.00672, allocations: 0 / 0.7925 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.006724, allocations: 0.8438 kB / 0.7925 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000326/0.00705, allocations: 393.4 kB / 0.7928 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.007051, allocations: 0 / 0.7928 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-06/0.007057, allocations: 1.219 kB / 0.7928 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.00706, allocations: 3.938 kB / 0.7928 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.007068, allocations: 4 kB / 0.7929 GB, free: 6.398 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.00707, allocations: 5.297 kB / 0.7929 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.007072, allocations: 0 / 0.7929 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.007259, allocations: 303.2 kB / 0.7931 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.435e-05/0.007273, allocations: 13.52 kB / 0.7932 GB, free: 6.055 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.007292, allocations: 4 kB / 0.7932 GB, free: 6.051 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.672e-05/0.007368, allocations: 7.984 kB / 0.7932 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.463e-05/0.007403, allocations: 11.98 kB / 0.7932 GB, free: 6.031 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.007414, allocations: 6.656 kB / 0.7932 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.534e-05/0.00746, allocations: 123.2 kB / 0.7933 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1e-07/0.00746, allocations: 0 / 0.7933 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002587/0.007718, allocations: 16 kB / 0.7933 GB, free: 5.891 MB / 0.7448 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 8.889e-05/0.007807, allocations: 108.7 kB / 0.7934 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001923/0.008, allocations: 159 kB / 0.7936 GB, free: 5.59 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.008001, allocations: 0 / 0.7936 GB, free: 5.59 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.244e-05/0.008053, allocations: 113.2 kB / 0.7937 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.008229, allocations: 25.91 kB / 0.7937 GB, free: 5.434 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002161/0.008445, allocations: 187.7 kB / 0.7939 GB, free: 5.215 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.966e-05/0.008475, allocations: 59.34 kB / 0.7939 GB, free: 5.137 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.922e-05/0.008494, allocations: 4.875 kB / 0.794 GB, free: 5.133 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/0.008552, allocations: 86.19 kB / 0.794 GB, free: 5.047 MB / 0.7448 GB Notification: Performance of SimCode: time 4.81e-07/0.008553, allocations: 0 / 0.794 GB, free: 5.047 MB / 0.7448 GB Notification: Performance of Templates: time 0.002266/0.01082, allocations: 1.024 MB / 0.795 GB, free: 4.062 MB / 0.7448 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.640566884540021]