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.001075/0.001075, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009961/0.0009961, allocations: 169 kB / 23.02 MB, free: 1.551 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.9611/0.9611, allocations: 177.1 MB / 203.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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 1.996/1.996, allocations: 429.5 MB / 0.6732 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/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 1.714e-06/1.714e-06, allocations: 0 / 0.8781 GB, free: 6.359 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.585e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.355 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.005851/0.005877, allocations: 1.491 MB / 0.8796 GB, free: 4.875 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.003949/0.009826, allocations: 466 kB / 0.88 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.171e-05/0.009867, allocations: 0 / 0.88 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/0.0099, allocations: 5.328 kB / 0.88 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.476e-05/0.009995, allocations: 15.31 kB / 0.88 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.00017/0.01017, allocations: 19.86 kB / 0.88 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.01029, allocations: 56.88 kB / 0.8801 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.12e-05/0.01038, allocations: 4 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.01048, allocations: 31.91 kB / 0.8801 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.963e-05/0.01055, allocations: 17.16 kB / 0.8802 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.01057, allocations: 7.938 kB / 0.8802 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.405e-05/0.01059, allocations: 4 kB / 0.8802 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.01061, allocations: 4.531 kB / 0.8802 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.473e-05/0.01066, allocations: 16.86 kB / 0.8802 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.01078, allocations: 35.89 kB / 0.8802 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.01078, allocations: 0 / 0.8802 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.72e-07/0.01079, allocations: 3.438 kB / 0.8802 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.01079, allocations: 0 / 0.8802 GB, free: 4.215 MB / 0.8386 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.0005542/0.01134, allocations: 418.1 kB / 0.8806 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.01139, allocations: 12.03 kB / 0.8806 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.01144, allocations: 8.922 kB / 0.8806 GB, free: 3.746 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.01154, allocations: 116.6 kB / 0.8808 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.01156, allocations: 4.375 kB / 0.8808 GB, free: 3.602 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.01157, allocations: 4.969 kB / 0.8808 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.01169, allocations: 77.47 kB / 0.8808 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.0117, allocations: 192 / 0.8808 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.01171, allocations: 384 / 0.8808 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.01172, allocations: 3.938 kB / 0.8808 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.674e-05/0.01178, allocations: 37.64 kB / 0.8809 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003794/0.01216, allocations: 271.8 kB / 0.8811 GB, free: 3.164 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.894e-05/0.01225, allocations: 72.69 kB / 0.8812 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.223e-05/0.01229, allocations: 41.39 kB / 0.8812 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003039/0.01533, allocations: 0 / 0.8812 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.0155, allocations: 144.4 kB / 0.8814 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.01551, allocations: 0 / 0.8814 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0003155/0.01582, allocations: 182.8 kB / 0.8816 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.01587, allocations: 93.03 kB / 0.8816 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.01598, allocations: 169.9 kB / 0.8818 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.01599, allocations: 29.7 kB / 0.8818 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.854e-05/0.01605, allocations: 135 kB / 0.882 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.01608, allocations: 19.83 kB / 0.882 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.896e-05/0.01613, allocations: 35.36 kB / 0.882 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.01627, allocations: 496.1 kB / 0.8825 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.454e-05/0.01631, allocations: 37.69 kB / 0.8825 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.042e-05/0.01637, allocations: 73.03 kB / 0.8826 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.01648, allocations: 114.4 kB / 0.8827 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.01648, allocations: 4 kB / 0.8827 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001746/0.01665, allocations: 153.3 kB / 0.8829 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.336e-05/0.01669, allocations: 33.7 kB / 0.8829 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.01669, allocations: 3.984 kB / 0.8829 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.01671, allocations: 0 / 0.8829 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.851e-05/0.01677, allocations: 8.062 kB / 0.8829 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.01678, allocations: 8 kB / 0.8829 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.436e-05/0.01683, allocations: 4 kB / 0.8829 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.01684, allocations: 3.984 kB / 0.8829 GB, free: 1.121 MB / 0.8386 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.0001102/0.01695, allocations: 198.2 kB / 0.8831 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.01697, allocations: 19.95 kB / 0.8831 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.118e-05/0.01701, allocations: 8.438 kB / 0.8831 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.01701, allocations: 0 / 0.8831 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.01701, allocations: 4 kB / 0.8831 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.01702, allocations: 0 / 0.8831 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.01743, allocations: 424.8 kB / 0.8835 GB, free: 416 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.01743, allocations: 3.938 kB / 0.8835 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-06/0.01744, allocations: 0 / 0.8835 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.01744, allocations: 0 / 0.8835 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.01745, allocations: 4 kB / 0.8835 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01745, allocations: 0 / 0.8835 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01746, allocations: 4 kB / 0.8835 GB, free: 404 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.01771, allocations: 315.1 kB / 0.8838 GB, free: 56 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.01773, allocations: 15.89 kB / 0.8839 GB, free: 40 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.01775, allocations: 4 kB / 0.8839 GB, free: 36 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.559e-05/0.01785, allocations: 7.984 kB / 0.8839 GB, free: 28 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003066/0.02091, allocations: 11.98 kB / 0.8839 GB, free: 16 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.02093, allocations: 0 / 0.8839 GB, free: 16 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.822e-05/0.021, allocations: 131.2 kB / 0.884 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.1e-07/0.021, allocations: 0 / 0.884 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002679/0.02127, allocations: 16 kB / 0.884 GB, free: 15.87 MB / 0.8542 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 9.324e-05/0.02136, allocations: 99.25 kB / 0.8841 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.02157, allocations: 174.4 kB / 0.8843 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.02158, allocations: 0 / 0.8843 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.289e-05/0.02167, allocations: 120.7 kB / 0.8844 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.02198, allocations: 19.92 kB / 0.8844 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003521/0.02233, allocations: 175.9 kB / 0.8846 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.151e-05/0.02237, allocations: 55.36 kB / 0.8846 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.946e-05/0.0224, allocations: 12.11 kB / 0.8847 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.02243, allocations: 12.5 kB / 0.8847 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of SimCode: time 6.92e-07/0.02243, allocations: 0 / 0.8847 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of Templates: time 0.00606/0.02849, allocations: 0.9516 MB / 0.8856 GB, free: 14.18 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.277172175701708]