Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_11_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.008151/0.008151, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.002333/0.002333, allocations: 195.8 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.223/2.223, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.972/2.972, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003498/0.003498, allocations: 60.11 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4894/0.4929, allocations: 159.1 MB / 1.22 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.004437/0.4974, allocations: 1.429 MB / 1.222 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.4989, allocations: 431 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.935e-05/0.499, allocations: 7.938 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.4991, allocations: 0 / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.4992, allocations: 15.86 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.4995, allocations: 15.98 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.4997, allocations: 51.84 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.4998, allocations: 8 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.192e-05/0.4999, allocations: 23.86 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.5, allocations: 27.91 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.5001, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.088e-05/0.5001, allocations: 4 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.038e-05/0.5001, allocations: 11.92 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.909e-05/0.5003, allocations: 15.94 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.5005, allocations: 47.75 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5005, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of FrontEnd: time 5.981e-06/0.5005, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.5005, allocations: 11.94 kB / 1.222 GB, free: 12.25 MB / 0.9825 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.001027/0.5016, allocations: 389 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.5017, allocations: 12.03 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.29e-05/0.5017, allocations: 34.73 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/0.5018, allocations: 8.891 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.5021, allocations: 168.3 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.5021, allocations: 4.375 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.5021, allocations: 8.375 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.5024, allocations: 57.78 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.5024, allocations: 4 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.5024, allocations: 0 / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5024, allocations: 0 / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.5026, allocations: 19.92 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006722/0.5032, allocations: 272.8 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.5034, allocations: 42.58 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.5035, allocations: 20.97 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.5036, allocations: 0 / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/0.5039, allocations: 105.1 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 2.595e-06/0.5039, allocations: 0 / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0005297/0.5045, allocations: 147.2 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.655e-05/0.5046, allocations: 85.09 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.5048, allocations: 109.8 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.5048, allocations: 33.7 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.9e-05/0.5049, allocations: 80.14 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.505, allocations: 19.84 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.735e-05/0.5051, allocations: 29.7 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002664/0.5054, allocations: 314.8 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.804e-05/0.5055, allocations: 19.98 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.494e-05/0.5056, allocations: 38.56 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.5058, allocations: 118.3 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5059, allocations: 0 / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003331/0.5062, allocations: 131.3 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.938e-05/0.5063, allocations: 33.7 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.5063, allocations: 64 / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.5063, allocations: 8.062 kB / 1.224 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.267e-05/0.5064, allocations: 4 kB / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.5064, allocations: 0 / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.5066, allocations: 11.94 kB / 1.224 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.5066, allocations: 4 kB / 1.224 GB, free: 9.66 MB / 0.9825 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.000208/0.5069, allocations: 161.1 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.5069, allocations: 4 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.507, allocations: 8.359 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.507, allocations: 4 kB / 1.225 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.507, allocations: 4 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.507, allocations: 0 / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008004/0.5078, allocations: 404.1 kB / 1.225 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5078, allocations: 0 / 1.225 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.016e-05/0.5079, allocations: 4 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.5079, allocations: 384 / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.5079, allocations: 4 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5079, allocations: 0 / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.508, allocations: 7.922 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004509/0.5084, allocations: 233.1 kB / 1.225 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.411e-05/0.5085, allocations: 81.06 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.5086, allocations: 11.94 kB / 1.225 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.5088, allocations: 7.984 kB / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.753e-05/0.5089, allocations: 7.938 kB / 1.225 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.5089, allocations: 4 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.033e-05/0.509, allocations: 87.27 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5091, allocations: 4 kB / 1.225 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004861/0.5096, allocations: 20 kB / 1.225 GB, free: 8.5 MB / 0.9825 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.0009983/0.5106, allocations: 0.7614 MB / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003684/0.511, allocations: 115.3 kB / 1.226 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.511, allocations: 4.125 kB / 1.226 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.5112, allocations: 91.38 kB / 1.226 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006185/0.5118, allocations: 25.78 kB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.5145, allocations: 1.415 MB / 1.228 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.515, allocations: 0.6938 MB / 1.228 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.763e-05/0.5151, allocations: 4 kB / 1.228 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.97e-05/0.5152, allocations: 15.42 kB / 1.228 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of SimCode: time 8.61e-07/0.5152, allocations: 4 kB / 1.228 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.141/0.6562, allocations: 1.891 MB / 1.23 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.35/20.01, allocations: 6.797 kB / 1.23 GB, free: 3.395 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches