Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006401/0.006401, allocations: 101.6 kB / 15.73 MB, free: 6.035 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.001262/0.001262, allocations: 199.3 kB / 16.67 MB, free: 5.969 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 390.2 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 57.34 kB / 0.9508 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.3618, allocations: 140.4 MB / 1.088 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002693/0.3646, allocations: 1.422 MB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008594/0.3655, allocations: 436.4 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.04e-05/0.3655, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.769e-05/0.3656, allocations: 3.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.765e-05/0.3657, allocations: 7.922 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.3659, allocations: 27.92 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.366, allocations: 47.84 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.3661, allocations: 11.98 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.287e-05/0.3662, allocations: 19.88 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.253e-05/0.3663, allocations: 19.92 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.3663, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.082e-05/0.3663, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.764e-05/0.3664, allocations: 11.92 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.542e-05/0.3664, allocations: 15.94 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.3666, allocations: 51.75 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3666, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3666, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.3666, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 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.0007073/0.3673, allocations: 393.1 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3673, allocations: 8.031 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.451e-05/0.3674, allocations: 12.83 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.3675, allocations: 176.3 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.3676, allocations: 4.375 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.3676, allocations: 8.312 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.3677, allocations: 53.98 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3677, allocations: 4 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.3677, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3678, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.28e-05/0.3678, allocations: 15.98 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.3683, allocations: 284.7 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.105e-05/0.3684, allocations: 46.56 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.207e-05/0.3685, allocations: 16.98 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.3685, allocations: 0 / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002121/0.3687, allocations: 101.1 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.3687, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0003201/0.369, allocations: 143.2 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.974e-05/0.3691, allocations: 85.11 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3692, allocations: 105.9 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.3693, allocations: 37.64 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.3693, allocations: 84.12 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.3694, allocations: 19.75 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-05/0.3694, allocations: 29.64 kB / 1.091 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3696, allocations: 318.8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.84e-05/0.3696, allocations: 23.98 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.455e-05/0.3697, allocations: 34.56 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.3698, allocations: 110.3 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3698, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001692/0.37, allocations: 135.2 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.531e-05/0.37, allocations: 39.64 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.37, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.3701, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.612e-05/0.3701, allocations: 4 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3701, allocations: 384 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.521e-05/0.3702, allocations: 7.984 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.3702, allocations: 4 kB / 1.092 GB, free: 12.87 MB / 0.8575 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.0001277/0.3704, allocations: 153.2 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.3704, allocations: 15.83 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.3704, allocations: 8.375 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3704, allocations: 4 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.3705, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3705, allocations: 3.938 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005436/0.371, allocations: 396.2 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.371, allocations: 3.938 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.945e-06/0.371, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.371, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.3711, allocations: 8 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3711, allocations: 3.984 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3711, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.3714, allocations: 237 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.46e-05/0.3715, allocations: 77.11 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.3715, allocations: 7.984 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.3716, allocations: 11.98 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.943e-05/0.3717, allocations: 7.938 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.3717, allocations: 12.05 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.435e-05/0.3718, allocations: 91.27 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3718, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002665/0.3721, allocations: 20 kB / 1.093 GB, free: 11.71 MB / 0.8575 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.0001812/0.3723, allocations: 95.25 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002634/0.3726, allocations: 115.3 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3726, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.3727, allocations: 91.39 kB / 1.093 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.3731, allocations: 24.05 kB / 1.093 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.3736, allocations: 162.8 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.374, allocations: 0.6807 MB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.369e-05/0.374, allocations: 4 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.416e-05/0.3741, allocations: 11.44 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.3741, allocations: 0 / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of Templates: time 0.00441/0.3785, allocations: 0.8669 MB / 1.095 GB, free: 9.59 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches