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.001403/0.001403, allocations: 109 kB / 17.54 MB, free: 4.766 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.001426/0.001426, allocations: 181.9 kB / 20.71 MB, free: 1.609 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.327/1.327, allocations: 225.6 MB / 249.3 MB, free: 3.207 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.511/2.511, allocations: 476.7 MB / 0.7628 GB, free: 15.15 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.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.001796/0.001796, allocations: 63.91 kB / 1.107 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7491/0.7508, allocations: 168.7 MB / 1.271 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001529/0.7524, allocations: 0.6806 MB / 1.272 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009543/0.7533, allocations: 1.057 MB / 1.273 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.01e-05/0.7534, allocations: 4.625 kB / 1.273 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.175e-05/0.7534, allocations: 3.938 kB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.324e-05/0.7534, allocations: 6.203 kB / 1.273 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.7537, allocations: 40.91 kB / 1.273 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.698e-05/0.7538, allocations: 38.52 kB / 1.273 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.503e-05/0.7538, allocations: 9.156 kB / 1.273 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.48e-05/0.7539, allocations: 18.05 kB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.853e-05/0.7539, allocations: 26.2 kB / 1.273 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.7539, allocations: 3.594 kB / 1.273 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.754, allocations: 25.86 kB / 1.273 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.754, allocations: 7.969 kB / 1.273 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.7541, allocations: 22.36 kB / 1.273 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.7542, allocations: 53.25 kB / 1.273 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.7542, allocations: 0.875 kB / 1.273 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7542, allocations: 0 / 1.273 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7542, allocations: 0 / 1.273 GB, free: 6.379 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003881/0.7546, allocations: 354.2 kB / 1.274 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.7546, allocations: 9.25 kB / 1.274 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.198e-05/0.7546, allocations: 36.52 kB / 1.274 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.422e-05/0.7546, allocations: 7.203 kB / 1.274 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.401e-05/0.7547, allocations: 167.8 kB / 1.274 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.7547, allocations: 7.016 kB / 1.274 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.7547, allocations: 2.844 kB / 1.274 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.7549, allocations: 63.08 kB / 1.274 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.7549, allocations: 3.938 kB / 1.274 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.7549, allocations: 1.031 kB / 1.274 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.7549, allocations: 5.75 kB / 1.274 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.7551, allocations: 40.12 kB / 1.274 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000324/0.7554, allocations: 277.2 kB / 1.274 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.7555, allocations: 45.36 kB / 1.274 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.217e-05/0.7556, allocations: 29.16 kB / 1.274 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.7556, allocations: 3.453 kB / 1.274 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.7558, allocations: 78.67 kB / 1.274 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.7558, allocations: 0 / 1.274 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.0003365/0.7561, allocations: 103.4 kB / 1.274 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.145e-05/0.7561, allocations: 58.39 kB / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.267e-05/0.7562, allocations: 114.3 kB / 1.275 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.155e-06/0.7562, allocations: 26.42 kB / 1.275 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.103e-05/0.7562, allocations: 85.88 kB / 1.275 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.7562, allocations: 15.31 kB / 1.275 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.7563, allocations: 21.22 kB / 1.275 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.313e-05/0.7563, allocations: 324.7 kB / 1.275 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.985e-05/0.7564, allocations: 24.56 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.112e-05/0.7565, allocations: 45.25 kB / 1.275 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.7566, allocations: 78.8 kB / 1.275 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.7566, allocations: 0 / 1.275 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002254/0.7569, allocations: 100.6 kB / 1.275 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.7569, allocations: 5.031 kB / 1.275 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.7569, allocations: 1.5 kB / 1.275 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.7569, allocations: 5.031 kB / 1.275 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.286e-05/0.757, allocations: 21.7 kB / 1.275 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.757, allocations: 3.891 kB / 1.275 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.011e-05/0.7571, allocations: 8.656 kB / 1.275 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.7571, allocations: 3.797 kB / 1.275 GB, free: 4.453 MB / 0.9981 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 4.639e-05/0.7571, allocations: 118.1 kB / 1.276 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.7571, allocations: 5.797 kB / 1.276 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002283/0.7573, allocations: 97.33 kB / 1.276 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.7573, allocations: 0.9062 kB / 1.276 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.7574, allocations: 0.7812 kB / 1.276 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.7574, allocations: 0 / 1.276 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.7577, allocations: 333.5 kB / 1.276 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7577, allocations: 0 / 1.276 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-05/0.7577, allocations: 20.2 kB / 1.276 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.7577, allocations: 4.875 kB / 1.276 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.7577, allocations: 1.312 kB / 1.276 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.7577, allocations: 0 / 1.276 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7577, allocations: 5 kB / 1.276 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.7579, allocations: 181.5 kB / 1.276 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.7579, allocations: 83.17 kB / 1.276 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.758, allocations: 2.438 kB / 1.276 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.577e-05/0.758, allocations: 9.172 kB / 1.276 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.7581, allocations: 7.828 kB / 1.276 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.7581, allocations: 2.047 kB / 1.276 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.344e-05/0.7581, allocations: 89 kB / 1.276 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.7581, allocations: 0 / 1.276 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002176/0.7583, allocations: 12.97 kB / 1.276 GB, free: 3.598 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: 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.0003773/0.7587, allocations: 0.7222 MB / 1.277 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002188/0.7589, allocations: 55.52 kB / 1.277 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.7589, allocations: 1 kB / 1.277 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.624e-05/0.759, allocations: 32.12 kB / 1.277 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.7592, allocations: 9.484 kB / 1.277 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.7604, allocations: 1.377 MB / 1.278 GB, free: 17.61 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.7607, allocations: 0.6821 MB / 1.279 GB, free: 16.92 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.402e-05/0.7607, allocations: 3.281 kB / 1.279 GB, free: 16.92 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.7607, allocations: 14.66 kB / 1.279 GB, free: 16.91 MB / 1.014 GB Notification: Performance of SimCode: time 3.21e-07/0.7607, allocations: 0 / 1.279 GB, free: 16.91 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.783, allocations: 1.698 MB / 1.281 GB, free: 16.53 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.824/7.607, allocations: 3.609 kB / 1.281 GB, free: 16.53 MB / 1.014 GB " [Timeout remaining time 292] (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 --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/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: 12.943965628000115]