Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001434/0.001434, allocations: 107.6 kB / 16.45 MB, free: 6.504 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.001843/0.001843, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.49/1.49, 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 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.767/2.767, allocations: 476.7 MB / 0.7611 GB, free: 11.41 MB / 0.6231 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.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 67.89 kB / 1.104 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9024/0.9045, allocations: 168.7 MB / 1.269 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001955/0.9065, allocations: 0.6638 MB / 1.269 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.908, allocations: 1.049 MB / 1.27 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.945e-05/0.908, allocations: 0 / 1.27 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.393e-05/0.9081, allocations: 3.938 kB / 1.27 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.77e-05/0.9081, allocations: 7.922 kB / 1.27 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.9084, allocations: 43.84 kB / 1.27 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.231e-05/0.9085, allocations: 43.86 kB / 1.27 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.37e-05/0.9085, allocations: 11.97 kB / 1.271 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.769e-05/0.9086, allocations: 19.94 kB / 1.271 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.647e-05/0.9087, allocations: 19.91 kB / 1.271 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.9087, allocations: 4 kB / 1.271 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.816e-05/0.9087, allocations: 23.86 kB / 1.271 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.9087, allocations: 8 kB / 1.271 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.575e-05/0.9088, allocations: 23.84 kB / 1.271 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.9089, allocations: 49.64 kB / 1.271 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.9089, allocations: 0 / 1.271 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9089, allocations: 4 kB / 1.271 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.9089, allocations: 0 / 1.271 GB, free: 3.191 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004931/0.9094, allocations: 355.3 kB / 1.271 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.9094, allocations: 12.03 kB / 1.271 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.9095, allocations: 34.75 kB / 1.271 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.598e-05/0.9095, allocations: 8.938 kB / 1.271 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.9097, allocations: 176.2 kB / 1.271 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.9097, allocations: 4.375 kB / 1.271 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.9097, allocations: 384 / 1.271 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.9098, allocations: 66.17 kB / 1.271 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.9099, allocations: 3.938 kB / 1.271 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.9099, allocations: 0 / 1.271 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.9099, allocations: 3.984 kB / 1.271 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.91, allocations: 43.95 kB / 1.271 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004636/0.9105, allocations: 276.9 kB / 1.272 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.9106, allocations: 42.5 kB / 1.272 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.5e-05/0.9107, allocations: 30.47 kB / 1.272 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.9108, allocations: 0 / 1.272 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.911, allocations: 71.34 kB / 1.272 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.911, allocations: 3.938 kB / 1.272 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.000395/0.9114, allocations: 109.6 kB / 1.272 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.9114, allocations: 55.34 kB / 1.272 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.9116, allocations: 105.8 kB / 1.272 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.9116, allocations: 25.7 kB / 1.272 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.607e-05/0.9117, allocations: 92.09 kB / 1.272 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.9117, allocations: 15.89 kB / 1.272 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.9118, allocations: 25.7 kB / 1.272 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002076/0.912, allocations: 314.8 kB / 1.272 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.249e-05/0.9121, allocations: 23.97 kB / 1.272 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.9122, allocations: 43.73 kB / 1.273 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.9124, allocations: 79.33 kB / 1.273 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9124, allocations: 0 / 1.273 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002539/0.9126, allocations: 101.5 kB / 1.273 GB, free: 0.8516 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.9126, allocations: 11.98 kB / 1.273 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.9126, allocations: 0 / 1.273 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.9127, allocations: 0 / 1.273 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.929e-05/0.9128, allocations: 19.92 kB / 1.273 GB, free: 0.8203 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.9128, allocations: 4.094 kB / 1.273 GB, free: 0.8164 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.952e-05/0.9128, allocations: 4 kB / 1.273 GB, free: 0.8125 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.9128, allocations: 8 kB / 1.273 GB, free: 0.8047 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001022/0.9129, allocations: 121.9 kB / 1.273 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.9129, allocations: 3.953 kB / 1.273 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002575/0.9132, allocations: 93.88 kB / 1.273 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.9132, allocations: 4 kB / 1.273 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9132, allocations: 4 kB / 1.273 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.9132, allocations: 3.984 kB / 1.273 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004634/0.9137, allocations: 338.5 kB / 1.273 GB, free: 168 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.9137, allocations: 0 / 1.273 GB, free: 168 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.895e-05/0.9137, allocations: 11.98 kB / 1.273 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.9137, allocations: 3.938 kB / 1.273 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.9138, allocations: 0 / 1.273 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.9138, allocations: 3.984 kB / 1.273 GB, free: 148 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.9138, allocations: 0 / 1.273 GB, free: 148 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.9141, allocations: 187.6 kB / 1.273 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.9141, allocations: 77.11 kB / 1.274 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.9141, allocations: 11.92 kB / 1.274 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.708e-05/0.9142, allocations: 4 kB / 1.274 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.9142, allocations: 11.73 kB / 1.274 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.9142, allocations: 0 / 1.274 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.183e-05/0.9143, allocations: 83.28 kB / 1.274 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9143, allocations: 4 kB / 1.274 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002329/0.9145, allocations: 15.94 kB / 1.274 GB, free: 15.72 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006887/0.9152, allocations: 0.7168 MB / 1.274 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.9155, allocations: 63.89 kB / 1.274 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.9155, allocations: 0 / 1.274 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.738e-05/0.9156, allocations: 27.97 kB / 1.274 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.9158, allocations: 13.19 kB / 1.274 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.9175, allocations: 1.383 MB / 1.276 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/0.918, allocations: 0.6884 MB / 1.276 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.854e-05/0.918, allocations: 4 kB / 1.276 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.489e-05/0.918, allocations: 15.44 kB / 1.277 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.918, allocations: 0 / 1.277 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.9421, allocations: 1.727 MB / 1.278 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/9.2, allocations: 8.672 kB / 1.278 GB, free: 11.04 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.22884676605463]