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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001421/0.001425, 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.001413/0.001413, allocations: 199.1 kB / 16.79 MB, free: 6.809 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.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.718/2.718, allocations: 461.8 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 65.34 kB / 0.899 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.3771, allocations: 157.4 MB / 1.053 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003115/0.3803, allocations: 1.488 MB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008625/0.3812, allocations: 442.8 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.333e-05/0.3813, allocations: 0 / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.943e-05/0.3813, allocations: 0 / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.584e-05/0.3814, allocations: 15.91 kB / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001684/0.3816, allocations: 16 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.246e-05/0.3817, allocations: 43.84 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.005e-05/0.3818, allocations: 4 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.252e-05/0.3819, allocations: 23.86 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.961e-05/0.3819, allocations: 19.92 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.382, allocations: 0 / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.382, allocations: 4 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.382, allocations: 7.922 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.3821, allocations: 19.92 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.072e-05/0.3822, allocations: 27.97 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3822, allocations: 4 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.765e-06/0.3822, allocations: 3.984 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.657e-06/0.3822, allocations: 0 / 1.055 GB, free: 6.262 MB / 0.8106 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.0006221/0.3828, allocations: 393.3 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3829, allocations: 15.91 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.3829, allocations: 8.844 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.3831, allocations: 168.3 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.3831, allocations: 8.375 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.3831, allocations: 4.375 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.3832, allocations: 61.98 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3833, allocations: 0 / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.3833, allocations: 0 / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3833, allocations: 0 / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.235e-05/0.3834, allocations: 23.97 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004286/0.3838, allocations: 272.8 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.086e-05/0.3839, allocations: 50.48 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.68e-05/0.3839, allocations: 16.98 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.384, allocations: 4 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.3842, allocations: 101.1 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.3842, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002961/0.3845, allocations: 135.3 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.3846, allocations: 85.11 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.682e-05/0.3847, allocations: 117.8 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3847, allocations: 29.7 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.3847, allocations: 84.14 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/0.3848, allocations: 15.81 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.3848, allocations: 25.7 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3849, allocations: 322.8 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.385, allocations: 19.92 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.874e-05/0.385, allocations: 42.56 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.3852, allocations: 102 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3852, allocations: 0 / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001618/0.3853, allocations: 131.2 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.3854, allocations: 34.08 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3854, allocations: 4.062 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3854, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.668e-05/0.3855, allocations: 7.938 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.3855, allocations: 3.938 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.162e-05/0.3856, allocations: 15.92 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.3856, allocations: 4 kB / 1.057 GB, free: 3.711 MB / 0.8106 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.0001095/0.3857, allocations: 150.7 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.3857, allocations: 11.89 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.3858, allocations: 12.38 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3858, allocations: 4 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3858, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3858, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/0.3862, allocations: 400.1 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3862, allocations: 0 / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.009e-05/0.3862, allocations: 3.938 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3862, allocations: 0 / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.3862, allocations: 7.984 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3862, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3863, allocations: 4.531 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.3865, allocations: 241.1 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.3865, allocations: 77.11 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.3866, allocations: 7.938 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3867, allocations: 7.984 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.031e-05/0.3867, allocations: 7.938 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.3868, allocations: 11.98 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.39e-05/0.3868, allocations: 87.34 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3868, allocations: 0 / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002375/0.3871, allocations: 20 kB / 1.058 GB, free: 2.562 MB / 0.8106 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.0001102/0.3872, allocations: 103.2 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001869/0.3874, allocations: 115.3 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3874, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.413e-05/0.3875, allocations: 91.39 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.3878, allocations: 21.14 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003843/0.3882, allocations: 188.8 kB / 1.058 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.3885, allocations: 0.6848 MB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.3885, allocations: 11.44 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3885, allocations: 4 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of Templates: time 0.002439/0.391, allocations: 0.8906 MB / 1.06 GB, free: 384 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches