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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_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.007416/0.007416, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00167/0.00167, allocations: 192.2 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.572/2.572, allocations: 469.4 MB / 0.7421 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 59.91 kB / 1.064 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6937/0.6952, allocations: 159.1 MB / 1.22 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002469/0.6977, allocations: 1.425 MB / 1.221 GB, free: 0.8945 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000687/0.6984, allocations: 431 kB / 1.222 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.8e-05/0.6984, allocations: 0 / 1.222 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.538e-05/0.6985, allocations: 3.938 kB / 1.222 GB, free: 476 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.981e-05/0.6986, allocations: 15.91 kB / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.6987, allocations: 27.92 kB / 1.222 GB, free: 432 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.6988, allocations: 43.86 kB / 1.222 GB, free: 388 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.887e-05/0.6989, allocations: 11.98 kB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.14e-05/0.699, allocations: 19.88 kB / 1.222 GB, free: 356 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.609e-05/0.699, allocations: 19.91 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.6991, allocations: 4 kB / 1.222 GB, free: 332 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.02e-05/0.6991, allocations: 4 kB / 1.222 GB, free: 328 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.599e-05/0.6991, allocations: 15.92 kB / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.469e-05/0.6992, allocations: 23.92 kB / 1.222 GB, free: 288 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.6993, allocations: 42.5 kB / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.6993, allocations: 0 / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6993, allocations: 0 / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.6993, allocations: 0 / 1.222 GB, free: 248 kB / 0.9356 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.0005766/0.6999, allocations: 398 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.6999, allocations: 8.625 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.7, allocations: 34.75 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.7, allocations: 8.891 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.7001, allocations: 176.3 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.7001, allocations: 8.312 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.7002, allocations: 4.375 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.7003, allocations: 49.81 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.7003, allocations: 0 / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.7003, allocations: 4 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.7003, allocations: 0 / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.592e-05/0.7004, allocations: 19.98 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003557/0.7007, allocations: 272.8 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.093e-05/0.7008, allocations: 46.5 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.278e-05/0.7009, allocations: 20.98 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.7009, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.7011, allocations: 109 kB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.7011, allocations: 4 kB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9): time 0.0002751/0.7014, allocations: 143.3 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.7014, allocations: 85.11 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.195e-05/0.7015, allocations: 105.8 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.7015, allocations: 25.7 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.088e-05/0.7016, allocations: 88.14 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.7016, allocations: 19.89 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/0.7017, allocations: 21.72 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7018, allocations: 330.7 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.557e-05/0.7018, allocations: 12 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.846e-05/0.7019, allocations: 46.44 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.702, allocations: 110 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.702, allocations: 0 / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001607/0.7022, allocations: 131.7 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.7022, allocations: 33.7 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.7022, allocations: 4 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.7022, allocations: 0 / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.258e-05/0.7023, allocations: 11.92 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.7023, allocations: 3.984 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.927e-05/0.7024, allocations: 11.94 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.7024, allocations: 4 kB / 1.224 GB, free: 13.64 MB / 0.9512 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.0001106/0.7025, allocations: 158.6 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.7025, allocations: 8 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.7026, allocations: 8.375 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.7026, allocations: 0 / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.7026, allocations: 0 / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.7026, allocations: 4 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/0.703, allocations: 400.4 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.703, allocations: 3.984 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.103e-05/0.703, allocations: 4 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.703, allocations: 3.938 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.703, allocations: 4 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.703, allocations: 4 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7031, allocations: 3.938 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.7033, allocations: 229.2 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.7033, allocations: 81.06 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.7034, allocations: 4 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.7035, allocations: 7.984 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.7035, allocations: 27.8 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.7036, allocations: 4 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.268e-05/0.7036, allocations: 83.28 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7036, allocations: 0 / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000247/0.7039, allocations: 19.98 kB / 1.225 GB, free: 12.48 MB / 0.9512 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.0005067/0.7044, allocations: 0.7627 MB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001742/0.7046, allocations: 119.4 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.7046, allocations: 0 / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.985e-05/0.7047, allocations: 87.34 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.705, allocations: 23.86 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.7062, allocations: 1.429 MB / 1.227 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.7065, allocations: 0.6807 MB / 1.228 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.876e-05/0.7065, allocations: 7.984 kB / 1.228 GB, free: 9.195 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.762e-05/0.7066, allocations: 15.44 kB / 1.228 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.7066, allocations: 0 / 1.228 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.723, allocations: 1.888 MB / 1.23 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/8.501, allocations: 8.484 kB / 1.23 GB, free: 7.383 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches