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.002313/0.002313, allocations: 83.69 kB / 20.23 MB, free: 4.184 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.002015/0.002015, allocations: 165.3 kB / 23.55 MB, free: 0.8672 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 1.62/1.62, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.021/3.021, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 0.8108 GB, free: 2.168 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.592e-05/2.741e-05, allocations: 3.406 kB / 0.8108 GB, free: 2.164 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002874/0.002901, allocations: 1.46 MB / 0.8122 GB, free: 0.7148 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009542/0.003855, allocations: 460.7 kB / 0.8126 GB, free: 268 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.075e-05/0.003896, allocations: 0 / 0.8126 GB, free: 268 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/0.003924, allocations: 9.609 kB / 0.8126 GB, free: 260 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 8.426e-05/0.004008, allocations: 11.92 kB / 0.8126 GB, free: 248 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.004154, allocations: 15.92 kB / 0.8127 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.004276, allocations: 51.84 kB / 0.8127 GB, free: 180 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 8.117e-05/0.004357, allocations: 5.531 kB / 0.8127 GB, free: 176 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 9.767e-05/0.004455, allocations: 31.91 kB / 0.8127 GB, free: 144 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 7.295e-05/0.004528, allocations: 15.92 kB / 0.8128 GB, free: 128 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.004551, allocations: 4 kB / 0.8128 GB, free: 124 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 1.334e-05/0.004564, allocations: 5.75 kB / 0.8128 GB, free: 120 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.812e-05/0.004592, allocations: 11.98 kB / 0.8128 GB, free: 108 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 4.332e-05/0.004636, allocations: 11.94 kB / 0.8128 GB, free: 96 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.004778, allocations: 47.8 kB / 0.8128 GB, free: 48 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.004781, allocations: 0 / 0.8128 GB, free: 48 kB / 0.7605 GB Notification: Performance of FrontEnd: time 4.92e-06/0.004786, allocations: 5.156 kB / 0.8128 GB, free: 44 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.00479, allocations: 0 / 0.8128 GB, free: 44 kB / 0.7605 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.0007007/0.00549, allocations: 414.8 kB / 0.8132 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.005529, allocations: 14.22 kB / 0.8132 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/0.005581, allocations: 8.891 kB / 0.8133 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.005733, allocations: 112.6 kB / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.005747, allocations: 384 / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.00576, allocations: 4.375 kB / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.005912, allocations: 87.92 kB / 0.8135 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.00592, allocations: 0.7188 kB / 0.8135 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.005929, allocations: 8.25 kB / 0.8135 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.005936, allocations: 4.656 kB / 0.8135 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.777e-05/0.006023, allocations: 49.69 kB / 0.8135 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.00646, allocations: 265.8 kB / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.006602, allocations: 76.75 kB / 0.8138 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.64e-05/0.006668, allocations: 49.52 kB / 0.8139 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.00669, allocations: 3.984 kB / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.006894, allocations: 144.9 kB / 0.814 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.006895, allocations: 0 / 0.814 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9): time 0.000391/0.007286, allocations: 219.5 kB / 0.8142 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.007357, allocations: 77.11 kB / 0.8143 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.007508, allocations: 178.5 kB / 0.8145 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.007545, allocations: 34.36 kB / 0.8145 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.059e-05/0.007636, allocations: 126.9 kB / 0.8146 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.007666, allocations: 20.48 kB / 0.8147 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.567e-05/0.007731, allocations: 39.36 kB / 0.8147 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003942/0.008125, allocations: 0.4897 MB / 0.8152 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.954e-05/0.008185, allocations: 41.7 kB / 0.8152 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.485e-05/0.00828, allocations: 80.73 kB / 0.8153 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.00843, allocations: 127.2 kB / 0.8154 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.008434, allocations: 4.938 kB / 0.8154 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000237/0.008671, allocations: 158.2 kB / 0.8156 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/0.008714, allocations: 37.69 kB / 0.8156 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.008719, allocations: 0 / 0.8156 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.008734, allocations: 0.9688 kB / 0.8156 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.447e-05/0.008789, allocations: 7.938 kB / 0.8156 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.008797, allocations: 4 kB / 0.8156 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.284e-05/0.00886, allocations: 18.2 kB / 0.8156 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.008866, allocations: 0 / 0.8156 GB, free: 12.86 MB / 0.7761 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.0001535/0.00902, allocations: 194.3 kB / 0.8158 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.009043, allocations: 11.94 kB / 0.8158 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.009076, allocations: 12.44 kB / 0.8158 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.009078, allocations: 3.344 kB / 0.8158 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.009082, allocations: 3.938 kB / 0.8158 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.00909, allocations: 3.984 kB / 0.8159 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005253/0.009615, allocations: 436.7 kB / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.009616, allocations: 0 / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.266e-05/0.009629, allocations: 4.062 kB / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.009635, allocations: 4 kB / 0.8163 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.009645, allocations: 0 / 0.8163 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.009646, allocations: 0 / 0.8163 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.009647, allocations: 1 kB / 0.8163 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000336/0.009983, allocations: 323.2 kB / 0.8166 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.978e-05/0.01, allocations: 11.95 kB / 0.8166 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.01002, allocations: 0.5 kB / 0.8166 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.822e-05/0.01012, allocations: 12.55 kB / 0.8166 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.702e-05/0.01017, allocations: 4.547 kB / 0.8166 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.01019, allocations: 8 kB / 0.8166 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.172e-05/0.01028, allocations: 136.3 kB / 0.8167 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01028, allocations: 0 / 0.8167 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002394/0.01052, allocations: 12 kB / 0.8168 GB, free: 11.61 MB / 0.7761 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.0001468/0.01067, allocations: 108.2 kB / 0.8169 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002892/0.01095, allocations: 183.5 kB / 0.817 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01096, allocations: 0 / 0.817 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.0111, allocations: 122.2 kB / 0.8172 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.01142, allocations: 28.83 kB / 0.8172 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000409/0.01183, allocations: 187.8 kB / 0.8174 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.095e-05/0.01191, allocations: 71.2 kB / 0.8174 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.9e-05/0.01194, allocations: 8.953 kB / 0.8174 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.463e-05/0.01197, allocations: 12.5 kB / 0.8175 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of SimCode: time 4.61e-07/0.01197, allocations: 1.031 kB / 0.8175 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of Templates: time 0.004054/0.01602, allocations: 0.9394 MB / 0.8184 GB, free: 9.898 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] 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/jenkins/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.301851735915989]