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.002067/0.002067, allocations: 78.81 kB / 19.18 MB, free: 2.516 MB / 14.72 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.002376/0.002376, allocations: 162 kB / 22.46 MB, free: 5.379 MB / 14.72 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.532/1.532, allocations: 177.1 MB / 202.8 MB, free: 9.156 MB / 190.1 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.8/2.8, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 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.723e-06/1.723e-06, allocations: 0 / 0.9814 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.728e-05, allocations: 2.281 kB / 0.9814 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002509/0.002536, allocations: 1.451 MB / 0.9828 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008371/0.003373, allocations: 434.9 kB / 0.9832 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.474e-05/0.003418, allocations: 0 / 0.9832 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.493e-05/0.003443, allocations: 0 / 0.9832 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.705e-05/0.00353, allocations: 19.84 kB / 0.9832 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.003694, allocations: 15.92 kB / 0.9832 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.003834, allocations: 55.78 kB / 0.9833 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.612e-05/0.003931, allocations: 15.92 kB / 0.9833 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.899e-05/0.004019, allocations: 31.92 kB / 0.9833 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.654e-05/0.004086, allocations: 7.984 kB / 0.9833 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.004108, allocations: 4 kB / 0.9833 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.004123, allocations: 4 kB / 0.9834 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.761e-05/0.004151, allocations: 11.92 kB / 0.9834 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.004192, allocations: 15.98 kB / 0.9834 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.004322, allocations: 47.81 kB / 0.9834 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.004325, allocations: 0 / 0.9834 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.323e-06/0.004326, allocations: 4 kB / 0.9834 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.004331, allocations: 4 kB / 0.9834 GB, free: 9.898 MB / 0.9356 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.0006211/0.004952, allocations: 327.8 kB / 0.9837 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.004992, allocations: 15.97 kB / 0.9838 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.005032, allocations: 4.891 kB / 0.9838 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.005171, allocations: 105.8 kB / 0.9839 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.005186, allocations: 4.375 kB / 0.9839 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.0052, allocations: 4.375 kB / 0.9839 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.005346, allocations: 79.94 kB / 0.9839 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.005357, allocations: 8.172 kB / 0.984 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.005367, allocations: 384 / 0.984 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.005374, allocations: 3.938 kB / 0.984 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.815e-05/0.005452, allocations: 49.69 kB / 0.984 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003852/0.005837, allocations: 212.5 kB / 0.9842 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.005947, allocations: 64.27 kB / 0.9843 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.715e-05/0.006005, allocations: 46.67 kB / 0.9843 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.006023, allocations: 0 / 0.9843 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.006235, allocations: 134.7 kB / 0.9844 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.006237, allocations: 0 / 0.9844 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0003417/0.006578, allocations: 206.8 kB / 0.9846 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.006645, allocations: 81.11 kB / 0.9847 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.006749, allocations: 117.8 kB / 0.9848 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.006769, allocations: 29.92 kB / 0.9849 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.006824, allocations: 84.14 kB / 0.9849 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.006851, allocations: 23.83 kB / 0.985 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.412e-05/0.006895, allocations: 25.66 kB / 0.985 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.007036, allocations: 322.8 kB / 0.9853 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.307e-05/0.00709, allocations: 37.7 kB / 0.9853 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.891e-05/0.007158, allocations: 68.27 kB / 0.9854 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.007287, allocations: 121.9 kB / 0.9855 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.007289, allocations: 0 / 0.9855 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002019/0.007491, allocations: 165.4 kB / 0.9857 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.667e-05/0.007528, allocations: 33.69 kB / 0.9857 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.007534, allocations: 4 kB / 0.9857 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.007548, allocations: 0 / 0.9857 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.486e-05/0.007593, allocations: 4 kB / 0.9857 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.0076, allocations: 3.984 kB / 0.9857 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.516e-05/0.007665, allocations: 8.047 kB / 0.9857 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.007675, allocations: 8 kB / 0.9857 GB, free: 7.242 MB / 0.9356 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.0001185/0.007794, allocations: 151.5 kB / 0.9859 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.917e-05/0.007813, allocations: 11.89 kB / 0.9859 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.655e-05/0.007839, allocations: 4.438 kB / 0.9859 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.007848, allocations: 7.984 kB / 0.9859 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.007852, allocations: 0 / 0.9859 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.007855, allocations: 0 / 0.9859 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004107/0.008266, allocations: 369.5 kB / 0.9863 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.008267, allocations: 0 / 0.9863 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.025e-06/0.008275, allocations: 0 / 0.9863 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.008277, allocations: 4 kB / 0.9863 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.008297, allocations: 15.97 kB / 0.9863 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.008298, allocations: 0 / 0.9863 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.008299, allocations: 0 / 0.9863 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.008556, allocations: 258.8 kB / 0.9865 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.705e-05/0.008573, allocations: 12.05 kB / 0.9865 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.008594, allocations: 7.938 kB / 0.9865 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.008699, allocations: 7.984 kB / 0.9865 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.008779, allocations: 7.984 kB / 0.9866 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.008797, allocations: 4 kB / 0.9866 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.599e-05/0.008853, allocations: 91.27 kB / 0.9866 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.008853, allocations: 0 / 0.9866 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002397/0.009093, allocations: 16 kB / 0.9867 GB, free: 6.199 MB / 0.9356 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.0001086/0.009202, allocations: 99.25 kB / 0.9868 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002218/0.009423, allocations: 166.7 kB / 0.9869 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.009425, allocations: 0 / 0.9869 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.009531, allocations: 109.1 kB / 0.987 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.009837, allocations: 30.09 kB / 0.987 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.01021, allocations: 182.5 kB / 0.9872 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.868e-05/0.01028, allocations: 67.34 kB / 0.9873 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.014e-05/0.01031, allocations: 7.984 kB / 0.9873 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.01034, allocations: 16.5 kB / 0.9873 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of SimCode: time 5.61e-07/0.01034, allocations: 0 / 0.9873 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of Templates: time 0.003865/0.01421, allocations: 0.9155 MB / 0.9882 GB, free: 4.543 MB / 0.9356 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: 8.134092990309]