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.005623/0.005623, allocations: 98.08 kB / 15.73 MB, free: 6.004 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.00131/0.00131, allocations: 199.2 kB / 16.68 MB, free: 5.934 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.704/2.704, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 67.89 kB / 1.018 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3285, allocations: 151.6 MB / 1.167 GB, free: 6.832 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002546/0.3311, allocations: 1.43 MB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007066/0.3318, allocations: 439 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.032e-05/0.3319, allocations: 0 / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.266e-05/0.3319, allocations: 3.938 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.615e-05/0.332, allocations: 7.922 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.3322, allocations: 27.91 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.3323, allocations: 55.73 kB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.676e-05/0.3324, allocations: 4 kB / 1.168 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.991e-05/0.3325, allocations: 27.86 kB / 1.168 GB, free: 4.828 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.489e-05/0.3326, allocations: 23.92 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.3326, allocations: 4 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.458e-05/0.3326, allocations: 4 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.3327, allocations: 3.984 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5e-05/0.3327, allocations: 27.86 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.3328, allocations: 39.83 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3328, allocations: 0 / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3328, allocations: 0 / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.3329, 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.0006171/0.3335, allocations: 397 kB / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3335, allocations: 12.03 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.3336, allocations: 4.891 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.3337, allocations: 168.3 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.3337, allocations: 4.375 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.3337, allocations: 8.312 kB / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.3339, allocations: 61.91 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3339, allocations: 4 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3339, allocations: 4 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.3339, allocations: 0 / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.653e-05/0.334, allocations: 19.98 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003928/0.3344, allocations: 268.8 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.815e-05/0.3345, allocations: 42.52 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.107e-05/0.3345, allocations: 24.97 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.3345, allocations: 4 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/0.3347, allocations: 101.1 kB / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.3347, allocations: 0 / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0002818/0.335, allocations: 143.3 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.3351, allocations: 81.11 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.34e-05/0.3352, allocations: 110.1 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3352, allocations: 25.7 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.3352, allocations: 92.14 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.3353, allocations: 23.78 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.3353, allocations: 25.7 kB / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3354, allocations: 318.8 kB / 1.17 GB, free: 2.582 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.561e-05/0.3355, allocations: 15.98 kB / 1.17 GB, free: 2.566 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.666e-05/0.3355, allocations: 42.5 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.986e-05/0.3356, allocations: 110 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3356, allocations: 4 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001525/0.3358, allocations: 131.2 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.3358, allocations: 29.7 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3358, allocations: 4 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3358, allocations: 0 / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.298e-05/0.3359, allocations: 11.94 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.3359, allocations: 0 / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.333e-05/0.336, allocations: 12.05 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.336, allocations: 4 kB / 1.171 GB, free: 2.176 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 9.629e-05/0.3361, allocations: 149.5 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.3361, allocations: 7.953 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.659e-05/0.3362, allocations: 16.3 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3362, allocations: 0 / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3362, allocations: 7.984 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3362, allocations: 0 / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003829/0.3366, allocations: 396.2 kB / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3366, allocations: 0 / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-06/0.3366, allocations: 4 kB / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3366, allocations: 0 / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3366, allocations: 0 / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.3366, allocations: 11.92 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3366, allocations: 0 / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.3368, allocations: 237.7 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.3369, allocations: 89 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.3369, allocations: 4 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.337, allocations: 7.984 kB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.3371, allocations: 11.94 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.3371, allocations: 7.984 kB / 1.172 GB, free: 1.129 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.365e-05/0.3372, allocations: 91.28 kB / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3372, allocations: 0 / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002391/0.3374, allocations: 16 kB / 1.172 GB, free: 1.023 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 9.745e-05/0.3375, allocations: 103.2 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001794/0.3377, allocations: 115.3 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3377, allocations: 0 / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.874e-05/0.3378, allocations: 91.39 kB / 1.172 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.3381, allocations: 12.17 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.0003188/0.3384, allocations: 145.4 kB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.3387, allocations: 0.6886 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.617e-05/0.3387, allocations: 4 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.3387, allocations: 15.44 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.3387, allocations: 0 / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of Templates: time 0.002965/0.3417, allocations: 0.861 MB / 1.174 GB, free: 14.92 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