Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001333/0.001333, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001614/0.001614, allocations: 161 kB / 23.82 MB, free: 0.75 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.9555/0.9555, allocations: 177.1 MB / 204.2 MB, free: 5.254 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.802/1.802, allocations: 359 MB / 0.6052 GB, free: 11.01 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0.6562 kB / 0.787 GB, free: 11.44 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.785e-05/1.931e-05, allocations: 6.516 kB / 0.787 GB, free: 11.44 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001806/0.001826, allocations: 1.471 MB / 0.7885 GB, free: 9.973 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0006421/0.002468, allocations: 461.6 kB / 0.7889 GB, free: 9.52 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.269e-05/0.00251, allocations: 0 / 0.7889 GB, free: 9.52 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 3.364e-05/0.002544, allocations: 3.938 kB / 0.7889 GB, free: 9.516 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 9.903e-05/0.002643, allocations: 15.86 kB / 0.7889 GB, free: 9.5 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.0028, allocations: 17.39 kB / 0.789 GB, free: 9.484 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.002905, allocations: 55.72 kB / 0.789 GB, free: 9.43 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.694e-05/0.002992, allocations: 4 kB / 0.789 GB, free: 9.426 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.505e-05/0.003067, allocations: 35.89 kB / 0.789 GB, free: 9.391 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.02e-05/0.003127, allocations: 12.55 kB / 0.7891 GB, free: 9.379 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.003148, allocations: 5.375 kB / 0.7891 GB, free: 9.375 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.003158, allocations: 4 kB / 0.7891 GB, free: 9.371 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.003181, allocations: 7.938 kB / 0.7891 GB, free: 9.363 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.716e-05/0.003218, allocations: 11.98 kB / 0.7891 GB, free: 9.352 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.003332, allocations: 44.89 kB / 0.7891 GB, free: 9.309 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.003333, allocations: 0 / 0.7891 GB, free: 9.309 MB / 0.698 GB Notification: Performance of FrontEnd: time 8.81e-07/0.003334, allocations: 0 / 0.7891 GB, free: 9.309 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.003339, allocations: 1.469 kB / 0.7891 GB, free: 9.309 MB / 0.698 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.0004586/0.003797, allocations: 421.8 kB / 0.7895 GB, free: 8.855 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.003831, allocations: 8.531 kB / 0.7895 GB, free: 8.848 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.003879, allocations: 10.05 kB / 0.7896 GB, free: 8.84 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.003981, allocations: 116.5 kB / 0.7897 GB, free: 8.699 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.003997, allocations: 8.359 kB / 0.7897 GB, free: 8.691 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.004009, allocations: 1.344 kB / 0.7897 GB, free: 8.691 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.004124, allocations: 75.94 kB / 0.7897 GB, free: 8.605 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.004135, allocations: 192 / 0.7897 GB, free: 8.605 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.004147, allocations: 1.125 kB / 0.7897 GB, free: 8.605 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.004156, allocations: 7.938 kB / 0.7898 GB, free: 8.598 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.716e-05/0.004204, allocations: 48.16 kB / 0.7898 GB, free: 8.547 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003141/0.004518, allocations: 271.7 kB / 0.7901 GB, free: 8.246 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.269e-05/0.00459, allocations: 64.75 kB / 0.7901 GB, free: 8.164 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.234e-05/0.004623, allocations: 45.5 kB / 0.7902 GB, free: 8.109 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.004644, allocations: 4 kB / 0.7902 GB, free: 8.105 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001139/0.004758, allocations: 130.1 kB / 0.7903 GB, free: 7.953 MB / 0.698 GB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.004759, allocations: 0 / 0.7903 GB, free: 7.953 MB / 0.698 GB Notification: Performance of matching and sorting (n=9): time 0.0002396/0.004999, allocations: 198.6 kB / 0.7905 GB, free: 7.734 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.005045, allocations: 81.11 kB / 0.7906 GB, free: 7.637 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.005322, allocations: 173.9 kB / 0.7907 GB, free: 7.449 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.005335, allocations: 26.3 kB / 0.7908 GB, free: 7.418 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.509e-05/0.00539, allocations: 135.4 kB / 0.7909 GB, free: 7.281 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.00541, allocations: 19.91 kB / 0.7909 GB, free: 7.262 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.005445, allocations: 35.95 kB / 0.7909 GB, free: 7.219 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.005616, allocations: 496.9 kB / 0.7914 GB, free: 6.723 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.113e-05/0.005647, allocations: 41.7 kB / 0.7914 GB, free: 6.676 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.447e-05/0.005692, allocations: 73.84 kB / 0.7915 GB, free: 6.586 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.805e-05/0.00577, allocations: 118.4 kB / 0.7916 GB, free: 6.445 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.005772, allocations: 1.375 kB / 0.7916 GB, free: 6.445 MB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001233/0.005895, allocations: 148.9 kB / 0.7918 GB, free: 6.281 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.005925, allocations: 41.78 kB / 0.7918 GB, free: 6.238 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.00593, allocations: 0 / 0.7918 GB, free: 6.238 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.005943, allocations: 0 / 0.7918 GB, free: 6.238 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.562e-05/0.005989, allocations: 8 kB / 0.7918 GB, free: 6.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.005994, allocations: 0 / 0.7918 GB, free: 6.23 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.541e-05/0.00603, allocations: 9.297 kB / 0.7918 GB, free: 6.223 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.006038, allocations: 8 kB / 0.7918 GB, free: 6.215 MB / 0.698 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 8.053e-05/0.006118, allocations: 194.9 kB / 0.792 GB, free: 6.008 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.006132, allocations: 12.47 kB / 0.792 GB, free: 5.996 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.24e-05/0.006154, allocations: 6.375 kB / 0.792 GB, free: 5.992 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.006156, allocations: 4 kB / 0.792 GB, free: 5.988 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.00616, allocations: 0 / 0.792 GB, free: 5.988 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.006164, allocations: 3.984 kB / 0.792 GB, free: 5.984 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/0.006454, allocations: 420.7 kB / 0.7924 GB, free: 5.52 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.006455, allocations: 2.594 kB / 0.7925 GB, free: 5.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.428e-06/0.00646, allocations: 0 / 0.7925 GB, free: 5.52 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.006466, allocations: 4 kB / 0.7925 GB, free: 5.516 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.006475, allocations: 4 kB / 0.7925 GB, free: 5.512 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.006477, allocations: 3.984 kB / 0.7925 GB, free: 5.508 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.006477, allocations: 0 / 0.7925 GB, free: 5.508 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.006624, allocations: 307.2 kB / 0.7928 GB, free: 5.176 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.007e-05/0.006634, allocations: 8.484 kB / 0.7928 GB, free: 5.168 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.00665, allocations: 4 kB / 0.7928 GB, free: 5.164 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.868e-05/0.006699, allocations: 12.77 kB / 0.7928 GB, free: 5.152 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.889e-05/0.006738, allocations: 8.516 kB / 0.7928 GB, free: 5.145 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.006753, allocations: 11.98 kB / 0.7928 GB, free: 5.133 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.687e-05/0.00679, allocations: 125.4 kB / 0.7929 GB, free: 5.012 MB / 0.698 GB Notification: Performance of sort global known variables: time 5e-08/0.00679, allocations: 0 / 0.7929 GB, free: 5.012 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001441/0.006934, allocations: 19.94 kB / 0.7929 GB, free: 4.992 MB / 0.698 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 6.697e-05/0.007001, allocations: 104.1 kB / 0.793 GB, free: 4.883 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001453/0.007146, allocations: 171.2 kB / 0.7932 GB, free: 4.688 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.007147, allocations: 0 / 0.7932 GB, free: 4.688 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 6.152e-05/0.007209, allocations: 118 kB / 0.7933 GB, free: 4.551 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.007402, allocations: 20.31 kB / 0.7933 GB, free: 4.531 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002742/0.007677, allocations: 192.7 kB / 0.7935 GB, free: 4.309 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.446e-05/0.007711, allocations: 59.34 kB / 0.7936 GB, free: 4.23 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.997e-05/0.007731, allocations: 5.281 kB / 0.7936 GB, free: 4.227 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.724e-05/0.007758, allocations: 12.5 kB / 0.7936 GB, free: 4.215 MB / 0.698 GB Notification: Performance of SimCode: time 1.102e-06/0.007759, allocations: 0 / 0.7936 GB, free: 4.215 MB / 0.698 GB Notification: Performance of Templates: time 0.002464/0.01022, allocations: 0.9349 MB / 0.7945 GB, free: 3.332 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.07024534791708]