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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001521/0.001521, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00215/0.00215, allocations: 187.5 kB / 16.25 MB, free: 6.637 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.55/1.55, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.827/2.827, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 63.81 kB / 0.9115 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3675, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002735/0.3703, allocations: 1.488 MB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007216/0.371, allocations: 438.9 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.011e-05/0.3711, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.43e-05/0.3711, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.134e-05/0.3712, allocations: 15.91 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001607/0.3714, allocations: 8 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.3715, allocations: 51.84 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.865e-05/0.3716, allocations: 4 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.246e-05/0.3717, allocations: 27.86 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.965e-05/0.3718, allocations: 23.91 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.3718, allocations: 4 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.134e-05/0.3718, allocations: 7.938 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.3719, allocations: 11.94 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.664e-05/0.3719, allocations: 19.91 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.372, allocations: 43.83 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.372, allocations: 0 / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.573e-06/0.372, allocations: 0 / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.372, allocations: 0 / 1.07 GB, free: 8.602 MB / 0.8262 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.0006067/0.3727, allocations: 399.2 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3727, allocations: 8.031 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.985e-05/0.3727, allocations: 8.844 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.3729, allocations: 180.2 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.3729, allocations: 4.375 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.3729, allocations: 8.375 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.373, allocations: 50 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.373, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.3731, allocations: 4 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.3731, allocations: 4 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.389e-05/0.3731, allocations: 19.98 kB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/0.3735, allocations: 268.8 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.495e-05/0.3736, allocations: 38.56 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.683e-05/0.3737, allocations: 24.98 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.3737, allocations: 3.984 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.3739, allocations: 97.09 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.3739, allocations: 3.938 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002817/0.3742, allocations: 143.3 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.3742, allocations: 81.11 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.625e-05/0.3743, allocations: 113.8 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3744, allocations: 29.7 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.3744, allocations: 84.12 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.3744, allocations: 19.81 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.3745, allocations: 21.72 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.3746, allocations: 327 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.227e-05/0.3746, allocations: 15.94 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.955e-05/0.3747, allocations: 42.5 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.3748, allocations: 117.9 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3748, allocations: 0 / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001472/0.375, allocations: 127.6 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.375, allocations: 33.7 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.375, allocations: 0 / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.375, allocations: 3.984 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.045e-05/0.3751, allocations: 4 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.3751, allocations: 7.984 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.3751, allocations: 8 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.3752, allocations: 8 kB / 1.072 GB, free: 6.051 MB / 0.8262 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.739e-05/0.3753, allocations: 147.5 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.3753, allocations: 11.84 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.75e-05/0.3753, allocations: 12.38 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3753, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3753, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3753, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/0.3757, allocations: 408.1 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3757, allocations: 0 / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.905e-06/0.3757, allocations: 0 / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3758, allocations: 4 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3758, allocations: 4 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3758, allocations: 0 / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3758, allocations: 4.062 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.376, allocations: 237 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/0.376, allocations: 85.02 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.3761, allocations: 7.984 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.3762, allocations: 12 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.3762, allocations: 7.922 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.3762, allocations: 4.094 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.715e-05/0.3763, allocations: 95.2 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3763, allocations: 0 / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002342/0.3765, allocations: 12 kB / 1.073 GB, free: 4.902 MB / 0.8262 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.881e-05/0.3766, allocations: 112.8 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000202/0.3768, allocations: 115.3 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3769, allocations: 0 / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.459e-05/0.3769, allocations: 91.33 kB / 1.073 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.3772, allocations: 12 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000321/0.3776, allocations: 173.4 kB / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.3778, allocations: 0.6846 MB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.917e-05/0.3778, allocations: 4 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.698e-05/0.3779, allocations: 11.44 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3779, allocations: 0 / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of Templates: time 0.002924/0.3808, allocations: 0.8255 MB / 1.075 GB, free: 2.812 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches