Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.002076/0.002076, allocations: 108.8 kB / 18.93 MB, free: 2.945 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.001964/0.001964, allocations: 191 kB / 22.23 MB, free: 5.16 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 / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.25/3.25, allocations: 0.4893 GB / 0.7884 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 71.2 kB / 1.145 GB, free: 30.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4105/0.4125, allocations: 174.9 MB / 1.316 GB, free: 9.754 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001863/0.4143, allocations: 0.6774 MB / 1.317 GB, free: 9.078 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.4159, allocations: 1.062 MB / 1.318 GB, free: 8.004 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.714e-05/0.416, allocations: 11.94 kB / 1.318 GB, free: 7.992 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.416, allocations: 0 / 1.318 GB, free: 7.992 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.402e-05/0.4161, allocations: 11.81 kB / 1.318 GB, free: 7.98 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.4164, allocations: 39.89 kB / 1.318 GB, free: 7.941 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.4166, allocations: 47.84 kB / 1.318 GB, free: 7.895 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.4167, allocations: 8 kB / 1.318 GB, free: 7.887 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.024e-05/0.4167, allocations: 23.92 kB / 1.318 GB, free: 7.863 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.891e-05/0.4168, allocations: 15.92 kB / 1.318 GB, free: 7.848 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.4168, allocations: 8 kB / 1.318 GB, free: 7.84 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.682e-05/0.4169, allocations: 19.97 kB / 1.318 GB, free: 7.82 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.4169, allocations: 8 kB / 1.318 GB, free: 7.812 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.583e-05/0.417, allocations: 27.86 kB / 1.318 GB, free: 7.785 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.4171, allocations: 55.78 kB / 1.318 GB, free: 7.73 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.4171, allocations: 0 / 1.318 GB, free: 7.73 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.754e-06/0.4171, allocations: 0 / 1.318 GB, free: 7.73 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.482e-05/0.4171, allocations: 7.938 kB / 1.318 GB, free: 7.723 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.0005829/0.4177, allocations: 282.2 kB / 1.318 GB, free: 7.414 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.4177, allocations: 8.031 kB / 1.318 GB, free: 7.406 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.4178, allocations: 8.891 kB / 1.318 GB, free: 7.398 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.4179, allocations: 118.5 kB / 1.318 GB, free: 7.258 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.4179, allocations: 384 / 1.318 GB, free: 7.258 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.4179, allocations: 4.375 kB / 1.318 GB, free: 7.254 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.4182, allocations: 62.22 kB / 1.318 GB, free: 7.188 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.4182, allocations: 192 / 1.318 GB, free: 7.188 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.4182, allocations: 3.938 kB / 1.318 GB, free: 7.184 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.4182, allocations: 4 kB / 1.318 GB, free: 7.18 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.4184, allocations: 39.95 kB / 1.318 GB, free: 7.141 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.4189, allocations: 267.8 kB / 1.319 GB, free: 6.836 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.419, allocations: 54.48 kB / 1.319 GB, free: 6.773 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.441e-05/0.4191, allocations: 24.97 kB / 1.319 GB, free: 6.746 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.4192, allocations: 3.984 kB / 1.319 GB, free: 6.742 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.4194, allocations: 75.33 kB / 1.319 GB, free: 6.656 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.4194, allocations: 0 / 1.319 GB, free: 6.656 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0004324/0.4198, allocations: 121.6 kB / 1.319 GB, free: 6.531 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.4199, allocations: 55.41 kB / 1.319 GB, free: 6.465 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.42, allocations: 114 kB / 1.319 GB, free: 6.344 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.42, allocations: 25.7 kB / 1.319 GB, free: 6.312 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.42, allocations: 88.14 kB / 1.319 GB, free: 6.223 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.4201, allocations: 11.89 kB / 1.319 GB, free: 6.211 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.4201, allocations: 25.72 kB / 1.319 GB, free: 6.18 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4203, allocations: 318.8 kB / 1.32 GB, free: 5.859 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.932e-05/0.4204, allocations: 23.98 kB / 1.32 GB, free: 5.836 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.4205, allocations: 60.2 kB / 1.32 GB, free: 5.762 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.4207, allocations: 100.1 kB / 1.32 GB, free: 5.648 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4207, allocations: 0 / 1.32 GB, free: 5.648 MB / 1.014 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002744/0.421, allocations: 101.5 kB / 1.32 GB, free: 5.543 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.421, allocations: 11.98 kB / 1.32 GB, free: 5.531 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.421, allocations: 0 / 1.32 GB, free: 5.531 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.421, allocations: 7.938 kB / 1.32 GB, free: 5.523 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.4211, allocations: 16.14 kB / 1.32 GB, free: 5.508 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.4211, allocations: 12 kB / 1.32 GB, free: 5.496 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.822e-05/0.4212, allocations: 11.94 kB / 1.32 GB, free: 5.484 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.4212, allocations: 7.984 kB / 1.32 GB, free: 5.477 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,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 (9): * Single equations (assignments): 9 * 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 9.96e-05/0.4213, allocations: 123.2 kB / 1.32 GB, free: 5.348 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.4213, allocations: 7.953 kB / 1.32 GB, free: 5.34 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.4216, allocations: 110.2 kB / 1.32 GB, free: 5.223 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4216, allocations: 0 / 1.32 GB, free: 5.223 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4216, allocations: 0 / 1.32 GB, free: 5.223 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4216, allocations: 0 / 1.32 GB, free: 5.223 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004414/0.4221, allocations: 325.5 kB / 1.32 GB, free: 4.855 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4221, allocations: 0 / 1.32 GB, free: 4.855 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.563e-05/0.4221, allocations: 4 kB / 1.32 GB, free: 4.852 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4221, allocations: 4 kB / 1.321 GB, free: 4.848 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.4221, allocations: 7.984 kB / 1.321 GB, free: 4.84 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4221, allocations: 0 / 1.321 GB, free: 4.84 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4221, allocations: 0 / 1.321 GB, free: 4.84 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.4224, allocations: 191.4 kB / 1.321 GB, free: 4.637 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.17e-05/0.4224, allocations: 8.188 kB / 1.321 GB, free: 4.629 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.4225, allocations: 3.984 kB / 1.321 GB, free: 4.625 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-05/0.4225, allocations: 15.88 kB / 1.321 GB, free: 4.609 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.4226, allocations: 11.98 kB / 1.321 GB, free: 4.598 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.4226, allocations: 3.938 kB / 1.321 GB, free: 4.594 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.318e-05/0.4226, allocations: 87.33 kB / 1.321 GB, free: 4.508 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4226, allocations: 0 / 1.321 GB, free: 4.508 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002485/0.4229, allocations: 19.94 kB / 1.321 GB, free: 4.488 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001495/0.423, allocations: 95.25 kB / 1.321 GB, free: 4.387 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002804/0.4233, allocations: 71.89 kB / 1.321 GB, free: 4.316 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4233, allocations: 0 / 1.321 GB, free: 4.316 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.4234, allocations: 27.97 kB / 1.321 GB, free: 4.289 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.4237, allocations: 4 kB / 1.321 GB, free: 4.285 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003832/0.4241, allocations: 149.8 kB / 1.321 GB, free: 4.113 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.4244, allocations: 0.6887 MB / 1.322 GB, free: 3.398 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.756e-05/0.4245, allocations: 8.297 kB / 1.322 GB, free: 3.391 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.688e-05/0.4245, allocations: 11.44 kB / 1.322 GB, free: 3.379 MB / 1.014 GB Notification: Performance of SimCode: time 5.01e-07/0.4245, allocations: 0 / 1.322 GB, free: 3.379 MB / 1.014 GB Notification: Performance of Templates: time 0.003965/0.4285, allocations: 0.825 MB / 1.323 GB, free: 2.562 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 9.254312548786402]