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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002208/0.002208, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.193/3.193, allocations: 497.2 MB / 0.7811 GB, free: 33.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 66.58 kB / 1.134 GB, free: 33.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3598, allocations: 173.9 MB / 1.304 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002932/0.3627, allocations: 1.427 MB / 1.305 GB, free: 144 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.3637, allocations: 446.9 kB / 1.306 GB, free: 15.7 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.503e-05/0.3638, allocations: 0 / 1.306 GB, free: 15.7 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.308e-05/0.3638, allocations: 3.938 kB / 1.306 GB, free: 15.7 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.3639, allocations: 19.84 kB / 1.306 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001816/0.3641, allocations: 11.98 kB / 1.306 GB, free: 15.66 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.3642, allocations: 51.8 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.3643, allocations: 7.984 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.472e-05/0.3644, allocations: 27.86 kB / 1.306 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.064e-05/0.3645, allocations: 27.91 kB / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.3645, allocations: 0 / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.028e-05/0.3645, allocations: 4 kB / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.3646, allocations: 8 kB / 1.306 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.819e-05/0.3646, allocations: 19.86 kB / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.3648, allocations: 44.09 kB / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3648, allocations: 0 / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.374e-06/0.3648, allocations: 0 / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.3648, allocations: 4 kB / 1.306 GB, free: 15.47 MB / 1.014 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.0007338/0.3655, allocations: 393 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.3656, allocations: 12.92 kB / 1.306 GB, free: 15.02 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.411e-05/0.3656, allocations: 38.69 kB / 1.306 GB, free: 14.98 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.3656, allocations: 8.891 kB / 1.306 GB, free: 14.97 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.3658, allocations: 168.3 kB / 1.307 GB, free: 14.77 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3658, allocations: 8.312 kB / 1.307 GB, free: 14.76 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.3659, allocations: 4.375 kB / 1.307 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.366, allocations: 49.81 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.366, allocations: 8 kB / 1.307 GB, free: 14.69 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.366, allocations: 0 / 1.307 GB, free: 14.69 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.366, allocations: 0 / 1.307 GB, free: 14.69 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.397e-05/0.3661, allocations: 23.86 kB / 1.307 GB, free: 14.67 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.3666, allocations: 268.8 kB / 1.307 GB, free: 14.36 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.722e-05/0.3667, allocations: 34.56 kB / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.987e-05/0.3667, allocations: 16.98 kB / 1.307 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.3667, allocations: 8.078 kB / 1.307 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.367, allocations: 109 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of pre-optimization done (n=9): time 1.873e-06/0.367, allocations: 0 / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of matching and sorting (n=9): time 0.0003463/0.3673, allocations: 135.3 kB / 1.307 GB, free: 14.02 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.3674, allocations: 85.05 kB / 1.307 GB, free: 13.91 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.3675, allocations: 109.8 kB / 1.307 GB, free: 13.8 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.3675, allocations: 29.7 kB / 1.307 GB, free: 13.76 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.3676, allocations: 88.14 kB / 1.307 GB, free: 13.67 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.3676, allocations: 31.77 kB / 1.308 GB, free: 13.64 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.3676, allocations: 21.72 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001904/0.3678, allocations: 326.8 kB / 1.308 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.034e-05/0.3679, allocations: 12 kB / 1.308 GB, free: 13.27 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.74e-05/0.3679, allocations: 42.56 kB / 1.308 GB, free: 13.22 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.3681, allocations: 113.9 kB / 1.308 GB, free: 13.09 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3681, allocations: 4 kB / 1.308 GB, free: 13.09 MB / 1.014 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002005/0.3683, allocations: 119.3 kB / 1.308 GB, free: 12.96 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.33e-05/0.3683, allocations: 33.7 kB / 1.308 GB, free: 12.92 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3684, allocations: 0 / 1.308 GB, free: 12.92 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.3684, allocations: 0 / 1.308 GB, free: 12.92 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.703e-05/0.3685, allocations: 11.98 kB / 1.308 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.3685, allocations: 0 / 1.308 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.589e-05/0.3686, allocations: 8.062 kB / 1.308 GB, free: 12.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.3686, allocations: 4 kB / 1.308 GB, free: 12.89 MB / 1.014 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.0001833/0.3687, allocations: 163.3 kB / 1.308 GB, free: 12.72 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.3688, allocations: 7.953 kB / 1.308 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.779e-05/0.3688, allocations: 12.73 kB / 1.308 GB, free: 12.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3688, allocations: 4 kB / 1.308 GB, free: 12.69 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.3688, allocations: 0 / 1.308 GB, free: 12.69 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3688, allocations: 0 / 1.308 GB, free: 12.69 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006385/0.3695, allocations: 408.1 kB / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.3695, allocations: 3.984 kB / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-06/0.3695, allocations: 0 / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3695, allocations: 0 / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3695, allocations: 4 kB / 1.309 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3695, allocations: 0 / 1.309 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3695, allocations: 3.938 kB / 1.309 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.3698, allocations: 233.1 kB / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.116e-05/0.3699, allocations: 85.11 kB / 1.309 GB, free: 11.87 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.3699, allocations: 0 / 1.309 GB, free: 11.87 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.37, allocations: 11.98 kB / 1.309 GB, free: 11.86 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.3701, allocations: 11.92 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.3701, allocations: 4 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.078e-05/0.3702, allocations: 91.81 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3702, allocations: 0 / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002808/0.3705, allocations: 15.98 kB / 1.309 GB, free: 11.73 MB / 1.014 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.0007139/0.3712, allocations: 0.7709 MB / 1.31 GB, free: 10.93 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002649/0.3715, allocations: 111.4 kB / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3715, allocations: 0 / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3716, allocations: 75.41 kB / 1.31 GB, free: 10.73 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.3719, allocations: 33.83 kB / 1.31 GB, free: 10.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.3737, allocations: 1.429 MB / 1.312 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.374, allocations: 0.6868 MB / 1.312 GB, free: 8.457 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.99e-05/0.3741, allocations: 3.984 kB / 1.312 GB, free: 8.453 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.3741, allocations: 15.44 kB / 1.312 GB, free: 8.438 MB / 1.014 GB Notification: Performance of SimCode: time 1.543e-06/0.3741, allocations: 4 kB / 1.312 GB, free: 8.434 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02672/0.4008, allocations: 1.897 MB / 1.314 GB, free: 6.633 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.353/8.754, allocations: 4.703 kB / 1.314 GB, free: 6.629 MB / 1.014 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.467874561902136]