Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000854/0.000854, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001269/0.002123, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007345/0.0007345, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009805/0.001715, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.024/1.024, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1086/1.132, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.933/1.933, allocations: 378.3 MB / 0.6079 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.532/2.465, allocations: 123.3 MB / 0.7283 GB, free: 5.715 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.505e-06/2.505e-06, allocations: 0 / 0.7296 GB, free: 4.418 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.339e-05/2.59e-05, allocations: 2.312 kB / 0.7296 GB, free: 4.414 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001929/0.001955, allocations: 0.7241 MB / 0.7303 GB, free: 3.723 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.003275, allocations: 1.116 MB / 0.7314 GB, free: 2.598 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.598e-05/0.003321, allocations: 4 kB / 0.7314 GB, free: 2.594 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.789e-05/0.003349, allocations: 4.594 kB / 0.7314 GB, free: 2.59 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.774e-05/0.003397, allocations: 10.33 kB / 0.7314 GB, free: 2.582 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.00361, allocations: 48.42 kB / 0.7315 GB, free: 2.535 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.00372, allocations: 41.38 kB / 0.7315 GB, free: 2.504 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.728e-05/0.003807, allocations: 12 kB / 0.7315 GB, free: 2.492 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.003925, allocations: 38.69 kB / 0.7316 GB, free: 2.457 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.077e-05/0.003985, allocations: 17.84 kB / 0.7316 GB, free: 2.441 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.004005, allocations: 5.219 kB / 0.7316 GB, free: 2.438 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.586e-05/0.004101, allocations: 20.75 kB / 0.7316 GB, free: 2.418 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.004127, allocations: 9.422 kB / 0.7316 GB, free: 2.41 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.761e-05/0.004154, allocations: 10.59 kB / 0.7316 GB, free: 2.402 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001416/0.004296, allocations: 43.06 kB / 0.7317 GB, free: 2.363 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.542e-05/0.004311, allocations: 0.7812 kB / 0.7317 GB, free: 2.363 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.253e-06/0.004312, allocations: 0 / 0.7317 GB, free: 2.363 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.578e-05/0.004328, allocations: 4.625 kB / 0.7317 GB, free: 2.359 MB / 0.698 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.0004999/0.004828, allocations: 262.1 kB / 0.7319 GB, free: 2.078 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.004868, allocations: 12.02 kB / 0.7319 GB, free: 2.066 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.005006, allocations: 82.86 kB / 0.732 GB, free: 1.969 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.005381, allocations: 121.6 kB / 0.7321 GB, free: 1.824 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.005397, allocations: 16.3 kB / 0.7322 GB, free: 1.809 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.005412, allocations: 5.781 kB / 0.7322 GB, free: 1.805 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.005541, allocations: 58.94 kB / 0.7322 GB, free: 1.738 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.005551, allocations: 4.188 kB / 0.7322 GB, free: 1.734 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.005558, allocations: 0.9062 kB / 0.7322 GB, free: 1.734 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.005565, allocations: 1.656 kB / 0.7322 GB, free: 1.734 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.927e-05/0.005594, allocations: 11.94 kB / 0.7322 GB, free: 1.723 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003125/0.005906, allocations: 164.3 kB / 0.7324 GB, free: 1.547 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.402e-05/0.00599, allocations: 39.81 kB / 0.7324 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.778e-05/0.006008, allocations: 8.859 kB / 0.7324 GB, free: 1.488 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.006029, allocations: 4.5 kB / 0.7324 GB, free: 1.484 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.204e-05/0.006121, allocations: 61.11 kB / 0.7325 GB, free: 1.414 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 2.565e-06/0.006123, allocations: 0 / 0.7325 GB, free: 1.414 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001366/0.00626, allocations: 57.56 kB / 0.7326 GB, free: 1.352 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.006304, allocations: 55.41 kB / 0.7326 GB, free: 1.285 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.039e-05/0.006374, allocations: 111.3 kB / 0.7327 GB, free: 1.164 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.006388, allocations: 29.7 kB / 0.7327 GB, free: 1.129 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.931e-05/0.006428, allocations: 93.38 kB / 0.7328 GB, free: 1.035 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.00645, allocations: 19.84 kB / 0.7329 GB, free: 1.016 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.00649, allocations: 21.7 kB / 0.7329 GB, free: 0.9883 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.052e-05/0.00658, allocations: 318.8 kB / 0.7332 GB, free: 0.668 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.006599, allocations: 5.438 kB / 0.7332 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.731e-05/0.006636, allocations: 40.27 kB / 0.7332 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.879e-05/0.006705, allocations: 58.06 kB / 0.7333 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.006707, allocations: 0 / 0.7333 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00011/0.006817, allocations: 67.39 kB / 0.7333 GB, free: 480 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.006833, allocations: 4 kB / 0.7333 GB, free: 476 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.006839, allocations: 4 kB / 0.7334 GB, free: 472 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.006856, allocations: 4.906 kB / 0.7334 GB, free: 468 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.006958, allocations: 23.92 kB / 0.7334 GB, free: 444 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.006962, allocations: 1.25 kB / 0.7334 GB, free: 444 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.822e-05/0.007, allocations: 4 kB / 0.7334 GB, free: 440 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/0.007009, allocations: 4 kB / 0.7334 GB, free: 436 kB / 0.698 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 7.346e-05/0.007083, allocations: 121.4 kB / 0.7335 GB, free: 308 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.007094, allocations: 0 / 0.7335 GB, free: 308 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.007205, allocations: 66.56 kB / 0.7336 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.00721, allocations: 8.75 kB / 0.7336 GB, free: 224 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.007211, allocations: 0 / 0.7336 GB, free: 224 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.007215, allocations: 1.062 kB / 0.7336 GB, free: 224 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.007441, allocations: 214.7 kB / 0.7338 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.007444, allocations: 0 / 0.7338 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.82e-05/0.007492, allocations: 9.219 kB / 0.7338 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.007503, allocations: 7.922 kB / 0.7338 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.007505, allocations: 0 / 0.7338 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.445e-06/0.007514, allocations: 6.094 kB / 0.7338 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.007516, allocations: 0 / 0.7338 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.007518, allocations: 4 kB / 0.7338 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.007625, allocations: 139.5 kB / 0.7339 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.007646, allocations: 11.92 kB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.931e-05/0.007705, allocations: 0.6562 kB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/0.00774, allocations: 11.94 kB / 0.734 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.007747, allocations: 4.734 kB / 0.734 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.713e-05/0.007764, allocations: 8.859 kB / 0.734 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.007764, allocations: 0.75 kB / 0.734 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002112/0.007975, allocations: 12 kB / 0.734 GB, free: 15.76 MB / 0.7136 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.0001524/0.008128, allocations: 90.53 kB / 0.7341 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001011/0.008229, allocations: 36.95 kB / 0.7341 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.008233, allocations: 1.344 kB / 0.7341 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.081e-05/0.008274, allocations: 20.8 kB / 0.7341 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.008504, allocations: 77.14 kB / 0.7342 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007884/0.009293, allocations: 151.6 kB / 0.7343 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.506e-05/0.009338, allocations: 59.34 kB / 0.7344 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.16e-05/0.009369, allocations: 4 kB / 0.7344 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.943e-05/0.009429, allocations: 55.38 kB / 0.7345 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of SimCode: time 6.91e-07/0.00943, allocations: 0 / 0.7345 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of Templates: time 0.002931/0.01236, allocations: 0.8612 MB / 0.7353 GB, free: 14.4 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.129788184538484]