Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0015/0.0015, allocations: 80.61 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.001604/0.001604, allocations: 166.7 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.527/1.527, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.07/3.07, allocations: 389 MB / 0.633 GB, free: 0.9766 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.435e-06/2.435e-06, allocations: 0 / 1 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.239e-05/4.482e-05, allocations: 6.219 kB / 1 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003116/0.003161, allocations: 1.453 MB / 1.002 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.004066, allocations: 434.9 kB / 1.002 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.243e-05/0.004118, allocations: 4 kB / 1.002 GB, free: 5.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.737e-05/0.004156, allocations: 7.938 kB / 1.002 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.525e-05/0.004251, allocations: 11.91 kB / 1.002 GB, free: 5.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001834/0.004434, allocations: 19.92 kB / 1.002 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.004576, allocations: 43.86 kB / 1.002 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.004684, allocations: 11.98 kB / 1.002 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.669e-05/0.004781, allocations: 27.91 kB / 1.002 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.202e-05/0.004863, allocations: 19.92 kB / 1.002 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.004892, allocations: 4 kB / 1.002 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.667e-05/0.004908, allocations: 4 kB / 1.002 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.074e-05/0.004939, allocations: 7.922 kB / 1.002 GB, free: 5.273 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.626e-05/0.004985, allocations: 19.94 kB / 1.002 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.005126, allocations: 47.86 kB / 1.002 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.00513, allocations: 0 / 1.002 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.21e-07/0.005131, allocations: 0 / 1.002 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.856e-06/0.005139, allocations: 0 / 1.002 GB, free: 5.207 MB / 0.9512 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.0006978/0.005837, allocations: 323.9 kB / 1.002 GB, free: 4.855 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/0.005883, allocations: 8.031 kB / 1.002 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.977e-05/0.005932, allocations: 8.891 kB / 1.002 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.006073, allocations: 113.7 kB / 1.003 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.006088, allocations: 12.31 kB / 1.003 GB, free: 4.691 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.006106, allocations: 4.375 kB / 1.003 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.00627, allocations: 79.94 kB / 1.003 GB, free: 4.598 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.006283, allocations: 192 / 1.003 GB, free: 4.598 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.006304, allocations: 4.375 kB / 1.003 GB, free: 4.594 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.006311, allocations: 7.875 kB / 1.003 GB, free: 4.586 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.131e-05/0.006393, allocations: 41.69 kB / 1.003 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004608/0.006854, allocations: 208.5 kB / 1.003 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.006971, allocations: 68.27 kB / 1.003 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.61e-05/0.007047, allocations: 50.67 kB / 1.003 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.007069, allocations: 0 / 1.003 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.007345, allocations: 134.7 kB / 1.003 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.007346, allocations: 0 / 1.003 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9): time 0.0004065/0.007753, allocations: 206.7 kB / 1.003 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/0.007832, allocations: 85.11 kB / 1.003 GB, free: 3.68 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.007958, allocations: 105.8 kB / 1.004 GB, free: 3.566 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.007982, allocations: 25.7 kB / 1.004 GB, free: 3.535 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.556e-05/0.008058, allocations: 88.14 kB / 1.004 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.008094, allocations: 27.78 kB / 1.004 GB, free: 3.418 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.701e-05/0.008141, allocations: 21.72 kB / 1.004 GB, free: 3.391 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.008317, allocations: 322.8 kB / 1.004 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.517e-05/0.008372, allocations: 41.7 kB / 1.004 GB, free: 3.02 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.625e-05/0.008449, allocations: 68.27 kB / 1.004 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.008585, allocations: 113.9 kB / 1.004 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.008587, allocations: 0 / 1.004 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002169/0.008804, allocations: 160.9 kB / 1.004 GB, free: 2.629 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.008852, allocations: 37.69 kB / 1.004 GB, free: 2.586 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.008858, allocations: 0 / 1.004 GB, free: 2.586 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.008877, allocations: 4.062 kB / 1.004 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.564e-05/0.008933, allocations: 4 kB / 1.004 GB, free: 2.578 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.008945, allocations: 4.062 kB / 1.004 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.928e-05/0.009014, allocations: 15.98 kB / 1.004 GB, free: 2.559 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.009025, allocations: 8.328 kB / 1.004 GB, free: 2.551 MB / 0.9512 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.0001469/0.009171, allocations: 143.5 kB / 1.005 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.009188, allocations: 11.89 kB / 1.005 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.009226, allocations: 16.42 kB / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.009228, allocations: 384 / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.009235, allocations: 0 / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.009238, allocations: 4 kB / 1.005 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.009722, allocations: 369.5 kB / 1.005 GB, free: 1.953 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.009723, allocations: 0 / 1.005 GB, free: 1.953 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.277e-06/0.009732, allocations: 4 kB / 1.005 GB, free: 1.949 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.009736, allocations: 3.984 kB / 1.005 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.009751, allocations: 3.984 kB / 1.005 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.009752, allocations: 0 / 1.005 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.009753, allocations: 0 / 1.005 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.01004, allocations: 270.8 kB / 1.005 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.127e-05/0.01005, allocations: 0 / 1.005 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.01008, allocations: 4 kB / 1.005 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.01018, allocations: 11.98 kB / 1.005 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.288e-05/0.01024, allocations: 11.98 kB / 1.005 GB, free: 1.621 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.01028, allocations: 4 kB / 1.005 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.131e-05/0.01035, allocations: 95.41 kB / 1.005 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.01035, allocations: 0 / 1.005 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000228/0.01058, allocations: 12 kB / 1.005 GB, free: 1.512 MB / 0.9512 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.0001166/0.01069, allocations: 105.6 kB / 1.005 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002552/0.01095, allocations: 170.8 kB / 1.006 GB, free: 1.207 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01095, allocations: 0 / 1.006 GB, free: 1.207 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.01107, allocations: 113 kB / 1.006 GB, free: 1.078 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.01137, allocations: 15.92 kB / 1.006 GB, free: 1.062 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000427/0.0118, allocations: 182.5 kB / 1.006 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.529e-05/0.01187, allocations: 67.34 kB / 1.006 GB, free: 0.7656 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.519e-05/0.0119, allocations: 7.984 kB / 1.006 GB, free: 0.7578 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.01194, allocations: 12.5 kB / 1.006 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of SimCode: time 5.41e-07/0.01194, allocations: 4.062 kB / 1.006 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of Templates: time 0.003877/0.01581, allocations: 0.9353 MB / 1.007 GB, free: 15.83 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.294866308569908]