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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00888/0.00888, allocations: 100.1 kB / 15.73 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002186/0.002186, allocations: 191.3 kB / 16.67 MB, free: 6.355 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.652/2.652, allocations: 437 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 60.09 kB / 1.018 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3236, allocations: 151.6 MB / 1.167 GB, free: 6.828 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002642/0.3263, allocations: 1.426 MB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.3271, allocations: 439 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.081e-05/0.3272, allocations: 0 / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.312e-05/0.3272, allocations: 3.938 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.486e-05/0.3273, allocations: 7.875 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.3275, allocations: 19.98 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.3277, allocations: 59.77 kB / 1.168 GB, free: 4.863 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.3278, allocations: 8 kB / 1.168 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.243e-05/0.3279, allocations: 23.86 kB / 1.168 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.651e-05/0.3279, allocations: 19.92 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.328, allocations: 4 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.311e-05/0.328, allocations: 4 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.608e-05/0.328, allocations: 7.984 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.477e-05/0.3281, allocations: 19.88 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.3282, allocations: 47.81 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3282, allocations: 4 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3282, allocations: 0 / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.3282, allocations: 0 / 1.169 GB, free: 4.727 MB / 0.92 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.0006686/0.3289, allocations: 389 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.329, allocations: 19.89 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.126e-05/0.329, allocations: 12.89 kB / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.3292, allocations: 172.2 kB / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3292, allocations: 4.375 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.3292, allocations: 8.375 kB / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.3293, allocations: 53.98 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.3294, allocations: 0 / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.3294, allocations: 4 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3294, allocations: 0 / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.519e-05/0.3295, allocations: 12 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.3299, allocations: 284.7 kB / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.33, allocations: 42.58 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.888e-05/0.3301, allocations: 20.97 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.3301, allocations: 0 / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.3303, allocations: 97.09 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.3303, allocations: 0 / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0003139/0.3306, allocations: 143.3 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/0.3307, allocations: 81.11 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3308, allocations: 113.8 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.3308, allocations: 33.69 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.784e-05/0.3309, allocations: 92.14 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.3309, allocations: 15.84 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.331, allocations: 29.7 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3312, allocations: 314.8 kB / 1.17 GB, free: 2.582 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.347e-05/0.3312, allocations: 23.98 kB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.666e-05/0.3313, allocations: 34.56 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.3314, allocations: 109.9 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3314, allocations: 0 / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001648/0.3315, allocations: 131.3 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.3316, allocations: 35.94 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3316, allocations: 4 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3316, allocations: 4.062 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.396e-05/0.3317, allocations: 4 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.3317, allocations: 7.875 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.81e-05/0.3318, allocations: 7.984 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.3318, allocations: 8 kB / 1.171 GB, free: 2.172 MB / 0.92 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.0001142/0.3319, allocations: 149.5 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.771e-05/0.3319, allocations: 7.953 kB / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.332, allocations: 8.375 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.332, allocations: 15.92 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.332, allocations: 0 / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.332, allocations: 64 / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003986/0.3324, allocations: 404.1 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3324, allocations: 0 / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.255e-06/0.3324, allocations: 0 / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3324, allocations: 0 / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.3325, allocations: 4 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3325, allocations: 0 / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3325, allocations: 0 / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.3327, allocations: 237.1 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.3327, allocations: 85.05 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.3328, allocations: 8 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.3329, allocations: 4 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.3329, allocations: 11.92 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.333, allocations: 4 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.581e-05/0.333, allocations: 87.81 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.4e-07/0.333, allocations: 4 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000247/0.3333, allocations: 20 kB / 1.172 GB, free: 1.027 MB / 0.92 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.0001017/0.3334, allocations: 95.25 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001956/0.3336, allocations: 123.3 kB / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3336, allocations: 0 / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.881e-05/0.3337, allocations: 87.39 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.334, allocations: 20.45 kB / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.3343, allocations: 149.3 kB / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3346, allocations: 0.6885 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.079e-05/0.3346, allocations: 4 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.3347, allocations: 15.38 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3347, allocations: 0 / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of Templates: time 0.003186/0.3379, allocations: 0.8668 MB / 1.174 GB, free: 14.91 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches