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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 108.2 kB / 17.54 MB, free: 4.746 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.001465/0.001465, allocations: 186.7 kB / 20.71 MB, free: 1.586 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.321/1.321, allocations: 225.6 MB / 249.3 MB, free: 3.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.49/2.49, allocations: 476.7 MB / 0.7628 GB, free: 15.12 MB / 0.6075 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 67.89 kB / 1.107 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7955/0.7975, allocations: 168.7 MB / 1.271 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002119/0.7997, allocations: 1.439 MB / 1.273 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006086/0.8003, allocations: 441.6 kB / 1.273 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.539e-05/0.8003, allocations: 4.781 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.8003, allocations: 3.938 kB / 1.273 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.924e-05/0.8004, allocations: 15.42 kB / 1.273 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.8005, allocations: 23.64 kB / 1.273 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.8007, allocations: 50.25 kB / 1.273 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.86e-05/0.8007, allocations: 4.359 kB / 1.273 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.367e-05/0.8008, allocations: 18.62 kB / 1.273 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.994e-05/0.8008, allocations: 22.59 kB / 1.273 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.8009, allocations: 7.719 kB / 1.273 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.8009, allocations: 3.625 kB / 1.273 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.8009, allocations: 12.23 kB / 1.273 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.933e-05/0.8009, allocations: 24 kB / 1.273 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.801, allocations: 49.8 kB / 1.273 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.801, allocations: 0 / 1.273 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.422e-06/0.8011, allocations: 0 / 1.273 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.8011, allocations: 0.8125 kB / 1.273 GB, free: 6.285 MB / 0.9981 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.0004921/0.8015, allocations: 392.8 kB / 1.274 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.8016, allocations: 9.375 kB / 1.274 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.28e-05/0.8016, allocations: 33.48 kB / 1.274 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.8016, allocations: 12.17 kB / 1.274 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.584e-05/0.8017, allocations: 176.6 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.8017, allocations: 6.5 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.8017, allocations: 4.031 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.8018, allocations: 54.56 kB / 1.274 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.8018, allocations: 0 / 1.274 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.8019, allocations: 6.656 kB / 1.274 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.8019, allocations: 4.906 kB / 1.274 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.164e-05/0.8019, allocations: 15.66 kB / 1.274 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002936/0.8022, allocations: 270 kB / 1.274 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.91e-05/0.8023, allocations: 36.75 kB / 1.274 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.974e-05/0.8023, allocations: 17.89 kB / 1.274 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.8023, allocations: 4.844 kB / 1.274 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/0.8025, allocations: 105.3 kB / 1.274 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.8025, allocations: 1.031 kB / 1.274 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0002367/0.8027, allocations: 145.1 kB / 1.275 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.8027, allocations: 80.19 kB / 1.275 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.432e-05/0.8028, allocations: 114.9 kB / 1.275 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/0.8028, allocations: 28.89 kB / 1.275 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.451e-05/0.8028, allocations: 85.27 kB / 1.275 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.8028, allocations: 22.98 kB / 1.275 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.8029, allocations: 27.12 kB / 1.275 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.821e-05/0.8029, allocations: 318.2 kB / 1.275 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.011e-05/0.8029, allocations: 20.94 kB / 1.275 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.681e-05/0.803, allocations: 32.11 kB / 1.275 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.742e-05/0.8031, allocations: 117.8 kB / 1.275 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8031, allocations: 4.969 kB / 1.275 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001269/0.8032, allocations: 122.2 kB / 1.276 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.8032, allocations: 37.27 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.8032, allocations: 1.156 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.8032, allocations: 0.9688 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.157e-05/0.8033, allocations: 3.156 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.8033, allocations: 4.938 kB / 1.276 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.052e-05/0.8033, allocations: 12.2 kB / 1.276 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.8033, allocations: 10.84 kB / 1.276 GB, free: 4.098 MB / 0.9981 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.341e-05/0.8034, allocations: 154.2 kB / 1.276 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.8034, allocations: 4.062 kB / 1.276 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.8035, allocations: 10.52 kB / 1.276 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.8035, allocations: 0.9062 kB / 1.276 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8035, allocations: 1.125 kB / 1.276 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.8035, allocations: 0.7031 kB / 1.276 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.8038, allocations: 408.5 kB / 1.276 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.8038, allocations: 0.9375 kB / 1.276 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.057e-06/0.8038, allocations: 1.562 kB / 1.276 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.8038, allocations: 0 / 1.276 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.8038, allocations: 7.781 kB / 1.276 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.8038, allocations: 0.9062 kB / 1.276 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.8038, allocations: 3.938 kB / 1.276 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.804, allocations: 230.6 kB / 1.276 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.804, allocations: 87.25 kB / 1.276 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.8041, allocations: 6.031 kB / 1.277 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.8042, allocations: 11.95 kB / 1.277 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.8042, allocations: 11.95 kB / 1.277 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.8042, allocations: 7.125 kB / 1.277 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.316e-05/0.8043, allocations: 84.27 kB / 1.277 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.8043, allocations: 0.5938 kB / 1.277 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002285/0.8045, allocations: 17.59 kB / 1.277 GB, free: 3.16 MB / 0.9981 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.0004043/0.8049, allocations: 0.7681 MB / 1.277 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001837/0.8051, allocations: 108.8 kB / 1.277 GB, free: 2.359 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.8051, allocations: 3.938 kB / 1.277 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.854e-05/0.8052, allocations: 87.08 kB / 1.278 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.8054, allocations: 25.3 kB / 1.278 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.8068, allocations: 1.417 MB / 1.279 GB, free: 16.96 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.8071, allocations: 0.6851 MB / 1.28 GB, free: 16.26 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.946e-05/0.8072, allocations: 5.5 kB / 1.28 GB, free: 16.26 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.8072, allocations: 20.09 kB / 1.28 GB, free: 16.25 MB / 1.014 GB Notification: Performance of SimCode: time 3.11e-07/0.8072, allocations: 4 kB / 1.28 GB, free: 16.25 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.8299, allocations: 1.879 MB / 1.282 GB, free: 15.84 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.976/7.805, allocations: 16.08 kB / 1.282 GB, free: 15.84 MB / 1.014 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 13.159354636999524]