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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001271/0.001271, 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.001233/0.001233, allocations: 193.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.243/1.243, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.372/2.372, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 61.88 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2171, allocations: 157.4 MB / 1.053 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002207/0.2194, allocations: 1.427 MB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006012/0.22, allocations: 450.7 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.22, allocations: 0 / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.261e-05/0.2201, allocations: 3.984 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.456e-05/0.2201, allocations: 7.875 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000124/0.2203, allocations: 19.98 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.349e-05/0.2204, allocations: 47.86 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.23e-05/0.2205, allocations: 11.98 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.816e-05/0.2205, allocations: 23.86 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.366e-05/0.2206, allocations: 23.91 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.2206, allocations: 4 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.019e-05/0.2206, allocations: 7.938 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.992e-05/0.2206, allocations: 7.938 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.76e-05/0.2207, allocations: 19.92 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.636e-05/0.2208, allocations: 48.09 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2208, allocations: 0 / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.42e-07/0.2208, allocations: 0 / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.487e-06/0.2208, allocations: 0 / 1.055 GB, free: 6.164 MB / 0.8106 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.000467/0.2213, allocations: 393.1 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.2213, allocations: 8.625 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.751e-05/0.2213, allocations: 38.69 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.2214, allocations: 8.844 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.042e-05/0.2214, allocations: 172.3 kB / 1.056 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.2215, allocations: 384 / 1.056 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.2215, allocations: 8.375 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.403e-05/0.2216, allocations: 49.81 kB / 1.056 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.2216, allocations: 0 / 1.056 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.2216, allocations: 4 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2216, allocations: 0 / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.031e-05/0.2217, allocations: 27.92 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003034/0.222, allocations: 268.8 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.12e-05/0.2221, allocations: 46.55 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.025e-05/0.2221, allocations: 20.98 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.2221, allocations: 7.984 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001484/0.2223, allocations: 101.1 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.2223, allocations: 0 / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002251/0.2225, allocations: 143.3 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.2226, allocations: 81.05 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.431e-05/0.2226, allocations: 113.8 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.2226, allocations: 25.7 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.2227, allocations: 88.14 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.2227, allocations: 23.78 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.2228, allocations: 26 kB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.697e-05/0.2228, allocations: 322.8 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.946e-05/0.2229, allocations: 15.94 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.976e-05/0.2229, allocations: 42.5 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.564e-05/0.223, allocations: 117.9 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.223, allocations: 0 / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001289/0.2231, allocations: 123.2 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.2232, allocations: 35.27 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.2232, allocations: 0 / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.2232, allocations: 7.984 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.542e-05/0.2232, allocations: 4 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2232, allocations: 4 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.631e-05/0.2233, allocations: 12 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.2233, allocations: 4 kB / 1.057 GB, free: 3.57 MB / 0.8106 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.91e-05/0.2234, allocations: 151.4 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.2234, allocations: 7.906 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.345e-05/0.2235, allocations: 12.38 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2235, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2235, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2235, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.2238, allocations: 408.1 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2238, allocations: 0 / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-06/0.2238, allocations: 0 / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2238, allocations: 4 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.2238, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2238, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2238, allocations: 3.938 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.224, allocations: 233.1 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.2241, allocations: 85.11 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.2241, allocations: 0 / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.2242, allocations: 11.98 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.2242, allocations: 12.02 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2242, allocations: 7.938 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.2243, allocations: 91.27 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2243, allocations: 0 / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002123/0.2245, allocations: 12 kB / 1.058 GB, free: 2.434 MB / 0.8106 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.0003703/0.2249, allocations: 0.7725 MB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001429/0.225, allocations: 119.3 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.225, allocations: 0 / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.865e-05/0.2251, allocations: 87.39 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.2254, allocations: 17.08 kB / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.2264, allocations: 1.412 MB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.2266, allocations: 0.6885 MB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.45e-05/0.2266, allocations: 4 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.2266, allocations: 19.42 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2266, allocations: 0 / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4609/0.6875, allocations: 1.86 MB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.67, allocations: 6.375 kB / 1.063 GB, free: 13.35 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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