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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006803/0.006803, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001756/0.001756, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.584/1.584, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.826/2.826, allocations: 437.1 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.91 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3641, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003856/0.368, allocations: 1.414 MB / 1.168 GB, free: 5.906 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.3692, allocations: 443 kB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.984e-05/0.3693, allocations: 0 / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.592e-05/0.3693, allocations: 3.938 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.309e-05/0.3694, allocations: 7.922 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.3696, allocations: 19.92 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.3698, allocations: 55.78 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3699, allocations: 12 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.92e-05/0.37, allocations: 23.86 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.3701, allocations: 19.92 kB / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.335e-05/0.3702, allocations: 4 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.782e-05/0.3702, allocations: 4 kB / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.3702, allocations: 11.97 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.607e-05/0.3703, allocations: 19.88 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.3705, allocations: 40.11 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3705, allocations: 3.938 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3705, allocations: 0 / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.219e-05/0.3705, allocations: 0 / 1.168 GB, free: 5.246 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.0008054/0.3713, allocations: 397 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.3714, allocations: 8.031 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.052e-05/0.3714, allocations: 38.73 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.3715, allocations: 8.891 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.3717, allocations: 176.2 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3717, allocations: 4.312 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.3717, allocations: 4.375 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.3719, allocations: 61.8 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.372, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.372, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.372, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.836e-05/0.3721, allocations: 19.98 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005346/0.3726, allocations: 276.8 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.3728, allocations: 42.5 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.513e-05/0.3728, allocations: 28.97 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3729, allocations: 0 / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.3731, allocations: 97.09 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.3732, allocations: 0 / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0004086/0.3736, allocations: 147.3 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.174e-05/0.3737, allocations: 81.09 kB / 1.169 GB, free: 3.668 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.3738, allocations: 113.8 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.3739, allocations: 29.7 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.895e-05/0.3739, allocations: 84.14 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.374, allocations: 15.84 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.374, allocations: 29.7 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3742, allocations: 322.8 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.362e-05/0.3742, allocations: 15.98 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.742e-05/0.3743, allocations: 38.78 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.3744, allocations: 114 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3744, allocations: 96 / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001817/0.3746, allocations: 127.2 kB / 1.17 GB, free: 2.719 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/0.3747, allocations: 37.69 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3747, allocations: 400 / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.3747, allocations: 4 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.372e-05/0.3748, allocations: 3.938 kB / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.3748, allocations: 8.062 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.417e-05/0.3749, allocations: 11.98 kB / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.3749, allocations: 7.938 kB / 1.17 GB, free: 2.641 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.0001317/0.375, allocations: 143.5 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.375, allocations: 7.953 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.581e-05/0.3751, allocations: 16.36 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3751, allocations: 0 / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3751, allocations: 0 / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3751, allocations: 4 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004899/0.3756, allocations: 400.1 kB / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3756, allocations: 0 / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.118e-05/0.3756, allocations: 0 / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.3756, allocations: 7.938 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.3757, allocations: 0 / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3757, allocations: 0 / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3757, allocations: 3.938 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002769/0.3759, allocations: 237.2 kB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/0.376, allocations: 89.06 kB / 1.171 GB, free: 1.633 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.376, allocations: 0 / 1.171 GB, free: 1.633 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.3762, allocations: 11.98 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.3762, allocations: 7.875 kB / 1.171 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.3762, allocations: 12.06 kB / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.163e-05/0.3763, allocations: 87.27 kB / 1.171 GB, free: 1.516 MB / 0.92 GB Notification: Performance of sort global known variables: time 2e-07/0.3763, allocations: 0 / 1.171 GB, free: 1.516 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002474/0.3766, allocations: 16 kB / 1.171 GB, free: 1.5 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.0006084/0.3772, allocations: 0.7744 MB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000199/0.3774, allocations: 107.4 kB / 1.172 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3774, allocations: 0 / 1.172 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.924e-05/0.3775, allocations: 91.33 kB / 1.172 GB, free: 488 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.3778, allocations: 24.05 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.3794, allocations: 1.427 MB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.3797, allocations: 0.6807 MB / 1.174 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.068e-05/0.3797, allocations: 4 kB / 1.174 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.177e-05/0.3798, allocations: 27.42 kB / 1.174 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of SimCode: time 3.9e-07/0.3798, allocations: 0 / 1.174 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.4034, allocations: 1.877 MB / 1.176 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.426/8.83, allocations: 9.828 kB / 1.176 GB, free: 12.39 MB / 0.9356 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches