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.0008934/0.0008934, allocations: 76.55 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.0009068/0.0009068, allocations: 181.9 kB / 23.22 MB, free: 1.348 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.8956/0.8956, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.751/1.751, allocations: 377.8 MB / 0.6228 GB, free: 8.645 MB / 0.5886 GB " [Timeout remaining time 178] 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.944e-06/1.944e-06, allocations: 0 / 0.9821 GB, free: 2.137 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.608e-05, allocations: 5.094 kB / 0.9821 GB, free: 2.133 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002158/0.002184, allocations: 1.451 MB / 0.9836 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007167/0.002901, allocations: 434.9 kB / 0.984 GB, free: 248 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.846e-05/0.002949, allocations: 0 / 0.984 GB, free: 248 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.002983, allocations: 3.938 kB / 0.984 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 9.749e-05/0.00308, allocations: 19.91 kB / 0.984 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.003238, allocations: 15.92 kB / 0.984 GB, free: 208 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.003351, allocations: 51.8 kB / 0.9841 GB, free: 156 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 8.738e-05/0.003438, allocations: 4 kB / 0.9841 GB, free: 152 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.572e-05/0.003514, allocations: 35.89 kB / 0.9841 GB, free: 116 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 6.485e-05/0.003579, allocations: 11.98 kB / 0.9841 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.003601, allocations: 4 kB / 0.9841 GB, free: 100 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 1.497e-05/0.003616, allocations: 4 kB / 0.9841 GB, free: 96 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.003643, allocations: 15.92 kB / 0.9841 GB, free: 80 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.77e-05/0.003681, allocations: 8 kB / 0.9841 GB, free: 72 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.003803, allocations: 47.75 kB / 0.9842 GB, free: 24 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.003807, allocations: 8 kB / 0.9842 GB, free: 16 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.643e-06/0.003808, allocations: 4 kB / 0.9842 GB, free: 12 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.003813, allocations: 0 / 0.9842 GB, free: 12 kB / 0.9323 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.0004926/0.004305, allocations: 315.8 kB / 0.9845 GB, free: 15.67 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.004345, allocations: 12.03 kB / 0.9845 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.004382, allocations: 8.891 kB / 0.9845 GB, free: 15.65 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.774e-05/0.00447, allocations: 109.8 kB / 0.9846 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.004483, allocations: 4.375 kB / 0.9846 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.004495, allocations: 8.375 kB / 0.9846 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.004623, allocations: 79.94 kB / 0.9847 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.004634, allocations: 192 / 0.9847 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.004643, allocations: 384 / 0.9847 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.004649, allocations: 3.938 kB / 0.9847 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.191e-05/0.004711, allocations: 57.61 kB / 0.9848 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003498/0.005061, allocations: 208.5 kB / 0.985 GB, free: 15.11 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.585e-05/0.005147, allocations: 68.25 kB / 0.985 GB, free: 15.03 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.948e-05/0.005187, allocations: 46.69 kB / 0.9851 GB, free: 14.98 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.005208, allocations: 7.922 kB / 0.9851 GB, free: 14.97 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.005363, allocations: 134.7 kB / 0.9852 GB, free: 14.81 MB / 0.948 GB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.005365, allocations: 0 / 0.9852 GB, free: 14.81 MB / 0.948 GB Notification: Performance of matching and sorting (n=9): time 0.0002936/0.005659, allocations: 206.7 kB / 0.9854 GB, free: 14.59 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.005716, allocations: 81.11 kB / 0.9855 GB, free: 14.49 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.511e-05/0.005791, allocations: 121.9 kB / 0.9856 GB, free: 14.36 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.005804, allocations: 25.7 kB / 0.9856 GB, free: 14.33 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.388e-05/0.005858, allocations: 88.12 kB / 0.9857 GB, free: 14.24 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.005876, allocations: 15.84 kB / 0.9857 GB, free: 14.22 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.005912, allocations: 29.7 kB / 0.9858 GB, free: 14.19 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.76e-05/0.005999, allocations: 314.8 kB / 0.9861 GB, free: 13.87 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.916e-05/0.006038, allocations: 49.69 kB / 0.9861 GB, free: 13.82 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-05/0.006089, allocations: 76.2 kB / 0.9862 GB, free: 13.73 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.561e-05/0.006174, allocations: 117.9 kB / 0.9863 GB, free: 13.59 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.006177, allocations: 0 / 0.9863 GB, free: 13.59 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001309/0.006308, allocations: 152.9 kB / 0.9864 GB, free: 13.42 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.006342, allocations: 33.7 kB / 0.9865 GB, free: 13.38 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.00635, allocations: 7.984 kB / 0.9865 GB, free: 13.38 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.006363, allocations: 0 / 0.9865 GB, free: 13.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.988e-05/0.006413, allocations: 8.062 kB / 0.9865 GB, free: 13.37 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.006419, allocations: 0 / 0.9865 GB, free: 13.37 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.499e-05/0.006464, allocations: 4 kB / 0.9865 GB, free: 13.36 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.006472, allocations: 4 kB / 0.9865 GB, free: 13.36 MB / 0.948 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.291e-05/0.006565, allocations: 151.5 kB / 0.9866 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.131e-05/0.006576, allocations: 11.89 kB / 0.9866 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.006599, allocations: 8.438 kB / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.006602, allocations: 4 kB / 0.9867 GB, free: 13.17 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.006606, allocations: 0 / 0.9867 GB, free: 13.17 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.00661, allocations: 0 / 0.9867 GB, free: 13.17 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.006896, allocations: 385.8 kB / 0.987 GB, free: 12.75 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.006897, allocations: 0 / 0.987 GB, free: 12.75 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-06/0.006902, allocations: 0 / 0.987 GB, free: 12.75 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.006904, allocations: 0 / 0.987 GB, free: 12.75 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.006912, allocations: 4 kB / 0.987 GB, free: 12.74 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.006913, allocations: 0 / 0.987 GB, free: 12.74 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006914, allocations: 0 / 0.987 GB, free: 12.74 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.007065, allocations: 266.7 kB / 0.9873 GB, free: 12.45 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.111e-05/0.007076, allocations: 7.953 kB / 0.9873 GB, free: 12.45 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.007092, allocations: 8 kB / 0.9873 GB, free: 12.44 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.184e-05/0.007154, allocations: 7.984 kB / 0.9873 GB, free: 12.43 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.007198, allocations: 11.98 kB / 0.9873 GB, free: 12.42 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.007211, allocations: 0 / 0.9873 GB, free: 12.42 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.235e-05/0.007244, allocations: 91.27 kB / 0.9874 GB, free: 12.33 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.007244, allocations: 0 / 0.9874 GB, free: 12.33 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000156/0.0074, allocations: 20 kB / 0.9874 GB, free: 12.31 MB / 0.948 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.498e-05/0.007485, allocations: 99.23 kB / 0.9875 GB, free: 12.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001624/0.007647, allocations: 166.7 kB / 0.9877 GB, free: 12.02 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.007649, allocations: 0 / 0.9877 GB, free: 12.02 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.072e-05/0.00772, allocations: 117.2 kB / 0.9878 GB, free: 11.88 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.00795, allocations: 15.94 kB / 0.9878 GB, free: 11.87 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003231/0.008273, allocations: 208.1 kB / 0.988 GB, free: 11.62 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.917e-05/0.008332, allocations: 71.34 kB / 0.9881 GB, free: 11.54 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.139e-05/0.008364, allocations: 12.5 kB / 0.9881 GB, free: 11.52 MB / 0.948 GB Notification: Performance of SimCode: time 1.112e-06/0.008365, allocations: 4 kB / 0.9881 GB, free: 11.52 MB / 0.948 GB Notification: Performance of Templates: time 0.001792/0.01016, allocations: 0.9181 MB / 0.989 GB, free: 10.61 MB / 0.948 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: 6.806413789279759]