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.002079/0.002079, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.002643/0.002643, allocations: 161.7 kB / 23.54 MB, free: 0.8945 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.54/1.54, allocations: 177.1 MB / 203.9 MB, free: 5.598 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 2.902/2.902, allocations: 377.8 MB / 0.6232 GB, free: 8.555 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.883e-06/1.883e-06, allocations: 1.094 kB / 0.8108 GB, free: 2.164 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.294e-05/3.482e-05, allocations: 6.25 kB / 0.8108 GB, free: 2.156 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003548/0.003582, allocations: 1.444 MB / 0.8122 GB, free: 0.7188 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.004788, allocations: 439.6 kB / 0.8126 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.733e-05/0.004845, allocations: 0.9688 kB / 0.8126 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.925e-05/0.004884, allocations: 3.938 kB / 0.8126 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.005001, allocations: 21.36 kB / 0.8126 GB, free: 268 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.005187, allocations: 11.98 kB / 0.8126 GB, free: 256 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.005343, allocations: 55.78 kB / 0.8127 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.005446, allocations: 4 kB / 0.8127 GB, free: 196 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.005565, allocations: 37.55 kB / 0.8127 GB, free: 160 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 7.923e-05/0.005644, allocations: 15.98 kB / 0.8127 GB, free: 144 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.00567, allocations: 4 kB / 0.8127 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 1.31e-05/0.005683, allocations: 0 / 0.8127 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.224e-05/0.005716, allocations: 13.31 kB / 0.8127 GB, free: 128 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 6.183e-05/0.005777, allocations: 15.98 kB / 0.8128 GB, free: 112 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.005931, allocations: 47.81 kB / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.005933, allocations: 0 / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of FrontEnd: time 1.152e-06/0.005934, allocations: 1.75 kB / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.005939, allocations: 0 / 0.8128 GB, free: 64 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.0007525/0.006692, allocations: 317.2 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.006739, allocations: 12.02 kB / 0.8131 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.299e-05/0.006802, allocations: 8.891 kB / 0.8131 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.00695, allocations: 117.7 kB / 0.8132 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.006972, allocations: 10.28 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.006984, allocations: 384 / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.007172, allocations: 87.92 kB / 0.8133 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.007185, allocations: 4.172 kB / 0.8133 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.007196, allocations: 384 / 0.8133 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.007205, allocations: 6.312 kB / 0.8134 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.558e-05/0.007301, allocations: 49.69 kB / 0.8134 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004591/0.00776, allocations: 208.5 kB / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.007885, allocations: 68.27 kB / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.174e-05/0.007947, allocations: 42.69 kB / 0.8137 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.007972, allocations: 0 / 0.8137 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.008245, allocations: 139.4 kB / 0.8138 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=9): time 1.183e-06/0.008246, allocations: 0.5312 kB / 0.8138 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9): time 0.0004084/0.008654, allocations: 202.7 kB / 0.814 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.008733, allocations: 86.75 kB / 0.8141 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.008854, allocations: 113.9 kB / 0.8142 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.008881, allocations: 29.7 kB / 0.8142 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.199e-05/0.008953, allocations: 88.12 kB / 0.8143 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/0.008995, allocations: 28.39 kB / 0.8144 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-05/0.00905, allocations: 25.7 kB / 0.8144 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.009224, allocations: 320.1 kB / 0.8147 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.124e-05/0.009285, allocations: 41.69 kB / 0.8147 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.127e-05/0.009376, allocations: 64.27 kB / 0.8148 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.009531, allocations: 119.1 kB / 0.8149 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.009533, allocations: 1.156 kB / 0.8149 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002538/0.009787, allocations: 157 kB / 0.8151 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.342e-05/0.009841, allocations: 34.23 kB / 0.8151 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.009847, allocations: 0 / 0.8151 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.802e-05/0.009875, allocations: 4.797 kB / 0.8151 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.156e-05/0.009937, allocations: 4 kB / 0.8151 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.009943, allocations: 0.8438 kB / 0.8151 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.717e-05/0.01002, allocations: 11.95 kB / 0.8151 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.01003, allocations: 5.75 kB / 0.8151 GB, free: 13.42 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.00017/0.0102, allocations: 151.5 kB / 0.8153 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.01023, allocations: 11.94 kB / 0.8153 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.01027, allocations: 8.438 kB / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.01028, allocations: 4.812 kB / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.01029, allocations: 0 / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.01029, allocations: 6.266 kB / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005387/0.01083, allocations: 373.5 kB / 0.8156 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.01083, allocations: 0 / 0.8156 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.466e-06/0.01084, allocations: 0 / 0.8156 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.01084, allocations: 0 / 0.8156 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.01087, allocations: 4 kB / 0.8156 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01087, allocations: 2.125 kB / 0.8157 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.01087, allocations: 4 kB / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.01121, allocations: 267.2 kB / 0.8159 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.027e-05/0.01123, allocations: 7.953 kB / 0.8159 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.01125, allocations: 7.938 kB / 0.8159 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.01137, allocations: 12.48 kB / 0.8159 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.01144, allocations: 4.516 kB / 0.8159 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.01146, allocations: 4 kB / 0.8159 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.534e-05/0.01154, allocations: 88.97 kB / 0.816 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01154, allocations: 0 / 0.816 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002822/0.01182, allocations: 16 kB / 0.816 GB, free: 12.38 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.0001696/0.01199, allocations: 103.7 kB / 0.8161 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003088/0.0123, allocations: 172 kB / 0.8163 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.0123, allocations: 0 / 0.8163 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.01245, allocations: 109.8 kB / 0.8164 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.01282, allocations: 34.25 kB / 0.8164 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005303/0.01335, allocations: 178.9 kB / 0.8166 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.01345, allocations: 74.77 kB / 0.8167 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.433e-05/0.0135, allocations: 7.984 kB / 0.8167 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.01354, allocations: 12.5 kB / 0.8167 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of SimCode: time 1.152e-06/0.01354, allocations: 0 / 0.8167 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of Templates: time 0.004575/0.01812, allocations: 0.9325 MB / 0.8176 GB, free: 10.72 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=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/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: 7.978756873984821]