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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_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.001231/0.001231, allocations: 108 kB / 15.6 MB, free: 132 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.001274/0.001274, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.218/1.218, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.171/2.171, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 67.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.553/0.5543, allocations: 140.4 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002353/0.5567, allocations: 1.414 MB / 0.9511 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000561/0.5573, allocations: 435.1 kB / 0.9515 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.644e-05/0.5573, allocations: 3.938 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.281e-05/0.5573, allocations: 3.938 kB / 0.9515 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.974e-05/0.5574, allocations: 13.16 kB / 0.9515 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001309/0.5576, allocations: 23.8 kB / 0.9515 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.47e-05/0.5577, allocations: 49.64 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.329e-05/0.5578, allocations: 7.844 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.872e-05/0.5578, allocations: 19.86 kB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.529e-05/0.5579, allocations: 21.31 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.5579, allocations: 4.094 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.208e-05/0.5579, allocations: 3.531 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.5579, allocations: 9.141 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.004e-05/0.558, allocations: 26.41 kB / 0.9517 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.676e-05/0.5581, allocations: 41.17 kB / 0.9517 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.5581, allocations: 5.5 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.044e-06/0.5581, allocations: 0 / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.5581, allocations: 0 / 0.9517 GB, free: 7.543 MB / 0.7169 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.0004867/0.5586, allocations: 395.1 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.5586, allocations: 10.56 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.179e-05/0.5587, allocations: 34.75 kB / 0.9521 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.5587, allocations: 11.78 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.614e-05/0.5588, allocations: 168.5 kB / 0.9523 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.507e-06/0.5588, allocations: 1.719 kB / 0.9523 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.5588, allocations: 15.09 kB / 0.9523 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.5589, allocations: 53.88 kB / 0.9524 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.559, allocations: 0 / 0.9524 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.719e-06/0.559, allocations: 0.875 kB / 0.9524 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.559, allocations: 1.531 kB / 0.9524 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.902e-05/0.559, allocations: 24.33 kB / 0.9524 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003131/0.5594, allocations: 272.9 kB / 0.9527 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.905e-05/0.5594, allocations: 41.66 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.217e-05/0.5595, allocations: 21.61 kB / 0.9527 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.5595, allocations: 4.688 kB / 0.9527 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001662/0.5597, allocations: 106.6 kB / 0.9528 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.5597, allocations: 4 kB / 0.9528 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002374/0.5599, allocations: 144.8 kB / 0.953 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.56, allocations: 79.98 kB / 0.9531 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.229e-05/0.5601, allocations: 115.2 kB / 0.9532 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.5601, allocations: 27.14 kB / 0.9532 GB, free: 6 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.23e-05/0.5601, allocations: 89.48 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.5601, allocations: 18.08 kB / 0.9533 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.581e-05/0.5602, allocations: 25.48 kB / 0.9533 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.652e-05/0.5602, allocations: 327.8 kB / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.346e-05/0.5603, allocations: 12.5 kB / 0.9536 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-05/0.5603, allocations: 38.97 kB / 0.9537 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.891e-05/0.5604, allocations: 108.4 kB / 0.9538 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5604, allocations: 1.406 kB / 0.9538 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001294/0.5605, allocations: 128.7 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.5606, allocations: 32.17 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.5606, allocations: 1.344 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.5606, allocations: 1.438 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.049e-05/0.5607, allocations: 2.75 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.5607, allocations: 1.469 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.346e-05/0.5607, allocations: 16.14 kB / 0.954 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-06/0.5607, allocations: 2.938 kB / 0.954 GB, free: 5.262 MB / 0.7169 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 7.291e-05/0.5608, allocations: 161.6 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.5608, allocations: 6.906 kB / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.5609, allocations: 9.594 kB / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.5609, allocations: 1.156 kB / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.5609, allocations: 1.281 kB / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5609, allocations: 0 / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000307/0.5612, allocations: 407.6 kB / 0.9545 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5612, allocations: 0 / 0.9545 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.985e-06/0.5612, allocations: 1.375 kB / 0.9545 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.5612, allocations: 4 kB / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.5613, allocations: 11.05 kB / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5613, allocations: 0 / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.5613, allocations: 4.312 kB / 0.9545 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.5614, allocations: 233 kB / 0.9548 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.49e-05/0.5615, allocations: 83.11 kB / 0.9548 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.5615, allocations: 2.062 kB / 0.9548 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.5616, allocations: 13.08 kB / 0.9549 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.5617, allocations: 15.11 kB / 0.9549 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.5617, allocations: 3.312 kB / 0.9549 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.783e-05/0.5617, allocations: 86.25 kB / 0.955 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5617, allocations: 0 / 0.955 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002493/0.562, allocations: 13.78 kB / 0.955 GB, free: 4.277 MB / 0.7169 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.0003586/0.5623, allocations: 0.772 MB / 0.9557 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001769/0.5625, allocations: 117.8 kB / 0.9558 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.5625, allocations: 0 / 0.9558 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.217e-05/0.5626, allocations: 91.81 kB / 0.9559 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.5629, allocations: 20.73 kB / 0.9559 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009766/0.5639, allocations: 1.416 MB / 0.9573 GB, free: 2 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.564, allocations: 0.6907 MB / 0.958 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.807e-05/0.5641, allocations: 3.344 kB / 0.958 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.387e-05/0.5641, allocations: 18.75 kB / 0.958 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5641, allocations: 5.219 kB / 0.958 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.5809, allocations: 1.843 MB / 0.9598 GB, free: 276 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.582/7.163, allocations: 7.344 kB / 0.9598 GB, free: 272 kB / 0.7169 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches