Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 200 kB / 16.79 MB, free: 6.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.558/2.558, allocations: 437 MB / 0.7106 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 67.89 kB / 0.8692 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6824/0.6839, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002979/0.687, allocations: 1.505 MB / 1.019 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00082/0.6878, allocations: 442.9 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.6878, allocations: 0 / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.6879, allocations: 0 / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.045e-05/0.688, allocations: 7.922 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.6882, allocations: 19.92 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.129e-05/0.6883, allocations: 43.86 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.694e-05/0.6884, allocations: 7.984 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.532e-05/0.6884, allocations: 23.91 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.604e-05/0.6885, allocations: 23.92 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.6886, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.412e-05/0.6886, allocations: 4 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.764e-05/0.6886, allocations: 11.92 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.6887, allocations: 15.94 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.488e-05/0.6888, allocations: 31.94 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.6888, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6888, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.6888, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 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.0006846/0.6895, allocations: 395 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.6896, allocations: 12.03 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.6896, allocations: 8.781 kB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.6898, allocations: 164.4 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.6898, allocations: 4.375 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.6898, allocations: 8.359 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.69, allocations: 50 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.69, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.69, allocations: 7.938 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.6901, allocations: 4 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.044e-05/0.6901, allocations: 23.92 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.6906, allocations: 272.7 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.205e-05/0.6907, allocations: 42.56 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.336e-05/0.6907, allocations: 24.98 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.6907, allocations: 0 / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.6909, allocations: 113.1 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.6909, allocations: 0 / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0003065/0.6912, allocations: 131.4 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.6913, allocations: 85.05 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.099e-05/0.6914, allocations: 113.8 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.6914, allocations: 25.7 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.6915, allocations: 88.14 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.6915, allocations: 19.81 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/0.6916, allocations: 25.7 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.6917, allocations: 322.8 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.523e-05/0.6917, allocations: 16 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.456e-05/0.6918, allocations: 42.5 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.6919, allocations: 117.9 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6919, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001569/0.6921, allocations: 127.2 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.6921, allocations: 29.7 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.6921, allocations: 4 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.6922, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.593e-05/0.6922, allocations: 8 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.6922, allocations: 0 / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.6923, allocations: 11.92 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.6923, allocations: 8.062 kB / 1.022 GB, free: 14.08 MB / 0.7794 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.0001278/0.6924, allocations: 157.8 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/0.6925, allocations: 7.906 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/0.6925, allocations: 8.375 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.6925, allocations: 0 / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6925, allocations: 7.938 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.6925, allocations: 0 / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.693, allocations: 408.1 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.693, allocations: 4 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-06/0.693, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.693, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.6931, allocations: 3.984 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.6931, allocations: 4.469 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6931, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.6933, allocations: 237 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.6934, allocations: 77.11 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.6934, allocations: 8 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.6935, allocations: 7.984 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.6936, allocations: 15.92 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.6936, allocations: 4 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.176e-05/0.6936, allocations: 87.34 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6936, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002337/0.6939, allocations: 16 kB / 1.023 GB, free: 12.93 MB / 0.7794 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.000114/0.694, allocations: 107.2 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001831/0.6942, allocations: 115.4 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.6942, allocations: 0 / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.6943, allocations: 95.33 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.6946, allocations: 11.98 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003674/0.695, allocations: 193 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.6952, allocations: 0.688 MB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.6953, allocations: 11.44 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of SimCode: time 3.5e-07/0.6953, allocations: 3.938 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of Templates: time 0.002149/0.6974, allocations: 0.8872 MB / 1.025 GB, free: 10.75 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches