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.006966/0.006966, allocations: 104.1 kB / 15.74 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.001563/0.001563, allocations: 196.2 kB / 16.67 MB, free: 5.957 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.472/2.472, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 59.91 kB / 1.054 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8065/0.8078, allocations: 157.4 MB / 1.207 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002229/0.81, allocations: 1.431 MB / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0006435/0.8107, allocations: 431 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.131e-05/0.8107, allocations: 4 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.737e-05/0.8108, allocations: 7.875 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.958e-05/0.8109, allocations: 15.86 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001532/0.811, allocations: 19.97 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.8112, allocations: 47.86 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.887e-05/0.8113, allocations: 7.984 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.768e-05/0.8113, allocations: 23.88 kB / 1.209 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.063e-05/0.8114, allocations: 15.92 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.8114, allocations: 8 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.14e-05/0.8114, allocations: 4 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.85e-05/0.8115, allocations: 19.91 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.8115, allocations: 15.92 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.865e-05/0.8116, allocations: 34.16 kB / 1.209 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.8116, allocations: 7.922 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8116, allocations: 0 / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.8116, allocations: 0 / 1.209 GB, free: 11.53 MB / 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.0005634/0.8122, allocations: 405 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.8122, allocations: 8.031 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.311e-05/0.8123, allocations: 42.69 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.8123, allocations: 0.9375 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.8124, allocations: 180.2 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-06/0.8125, allocations: 4.375 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.8125, allocations: 384 / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.8126, allocations: 53.81 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.8126, allocations: 0 / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.8126, allocations: 4 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.8126, allocations: 4 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.015e-05/0.8127, allocations: 19.92 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003522/0.813, allocations: 272.8 kB / 1.21 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.733e-05/0.8131, allocations: 42.56 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.405e-05/0.8132, allocations: 16.98 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.8132, allocations: 0 / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.8134, allocations: 113 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.8134, allocations: 0 / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0002559/0.8136, allocations: 143.3 kB / 1.21 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.8137, allocations: 85.05 kB / 1.211 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.213e-05/0.8138, allocations: 109.8 kB / 1.211 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.8138, allocations: 25.7 kB / 1.211 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.983e-05/0.8138, allocations: 92.09 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.8138, allocations: 19.8 kB / 1.211 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.8139, allocations: 25.72 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 8.913e-05/0.814, allocations: 322.8 kB / 1.211 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.09e-05/0.814, allocations: 12 kB / 1.211 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.483e-05/0.8141, allocations: 38.5 kB / 1.211 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.369e-05/0.8142, allocations: 121.9 kB / 1.211 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.8142, allocations: 0 / 1.211 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001401/0.8143, allocations: 131.2 kB / 1.211 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.8144, allocations: 29.7 kB / 1.211 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8144, allocations: 4 kB / 1.211 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.8144, allocations: 0 / 1.211 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.139e-05/0.8144, allocations: 7.984 kB / 1.211 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.8144, allocations: 0 / 1.211 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.308e-05/0.8145, allocations: 8 kB / 1.211 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.8145, allocations: 8.062 kB / 1.211 GB, free: 8.93 MB / 0.9356 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 9.319e-05/0.8146, allocations: 155.4 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.8146, allocations: 7.906 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.8147, allocations: 8.375 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.8147, allocations: 0 / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.8147, allocations: 4.062 kB / 1.212 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.8147, allocations: 4 kB / 1.212 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003373/0.815, allocations: 396.1 kB / 1.212 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.8151, allocations: 4 kB / 1.212 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-06/0.8151, allocations: 8.359 kB / 1.212 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8151, allocations: 0 / 1.212 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.8151, allocations: 0 / 1.212 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.8151, allocations: 4 kB / 1.212 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.8151, allocations: 7.875 kB / 1.212 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.8153, allocations: 233.1 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.8154, allocations: 85.02 kB / 1.212 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.8154, allocations: 8 kB / 1.212 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.8155, allocations: 11.97 kB / 1.212 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.858e-05/0.8155, allocations: 11.92 kB / 1.212 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.8156, allocations: 8 kB / 1.212 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.755e-05/0.8156, allocations: 83.81 kB / 1.212 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8156, allocations: 0 / 1.212 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002402/0.8158, allocations: 20 kB / 1.213 GB, free: 7.77 MB / 0.9356 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.0004247/0.8163, allocations: 0.761 MB / 1.213 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001557/0.8164, allocations: 115.3 kB / 1.213 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.8165, allocations: 0 / 1.213 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 7.642e-05/0.8165, allocations: 91.34 kB / 1.213 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.8168, allocations: 19.92 kB / 1.213 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.8179, allocations: 1.425 MB / 1.215 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.8182, allocations: 0.6846 MB / 1.216 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.716e-05/0.8182, allocations: 7.984 kB / 1.216 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.8182, allocations: 15.44 kB / 1.216 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.8182, allocations: 0 / 1.216 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.8346, allocations: 1.927 MB / 1.217 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/7.976, allocations: 4 kB / 1.217 GB, free: 2.641 MB / 0.9356 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) "" Variables in the reference:time,del.u,del.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,del.firstTrigger_start,del.samplePeriod,del.startTime,del.u,del.y,time