Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001609/0.001609, allocations: 79.28 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001739/0.001739, allocations: 164.4 kB / 22.46 MB, free: 5.375 MB / 14.72 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.499/1.499, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.911/2.911, allocations: 359 MB / 0.6037 GB, free: 14.95 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.545e-06/2.545e-06, allocations: 3.938 kB / 0.951 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.518e-05/3.772e-05, allocations: 6.281 kB / 0.951 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002381/0.002419, allocations: 0.6741 MB / 0.9516 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002234/0.004653, allocations: 1.093 MB / 0.9527 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.178e-05/0.004735, allocations: 0 / 0.9527 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.617e-05/0.004771, allocations: 3.938 kB / 0.9527 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.861e-05/0.00486, allocations: 7.875 kB / 0.9527 GB, free: 9.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003893/0.005249, allocations: 59.73 kB / 0.9528 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000153/0.005402, allocations: 67.78 kB / 0.9528 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.005522, allocations: 11.98 kB / 0.9528 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.005642, allocations: 35.95 kB / 0.9529 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.988e-05/0.005712, allocations: 35.89 kB / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.005734, allocations: 4 kB / 0.9529 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.738e-05/0.005822, allocations: 23.98 kB / 0.9529 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.731e-05/0.005849, allocations: 12 kB / 0.9529 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.005894, allocations: 19.91 kB / 0.953 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.006097, allocations: 91.66 kB / 0.953 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.006102, allocations: 4 kB / 0.953 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.12e-07/0.006103, allocations: 0 / 0.953 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.006109, allocations: 4 kB / 0.9531 GB, free: 9.406 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007084/0.006817, allocations: 306.1 kB / 0.9533 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.00686, allocations: 8.031 kB / 0.9534 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.006968, allocations: 24.75 kB / 0.9534 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.007095, allocations: 109.7 kB / 0.9535 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.007123, allocations: 8.375 kB / 0.9535 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.007144, allocations: 4.375 kB / 0.9535 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.0074, allocations: 82.14 kB / 0.9536 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.007411, allocations: 192 / 0.9536 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.007427, allocations: 8.375 kB / 0.9536 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.007432, allocations: 4.375 kB / 0.9536 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.007655, allocations: 55.83 kB / 0.9536 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.008206, allocations: 248.4 kB / 0.9539 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.008433, allocations: 70.55 kB / 0.9539 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.008566, allocations: 36.83 kB / 0.954 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.008594, allocations: 8 kB / 0.954 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002844/0.008878, allocations: 95.42 kB / 0.9541 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.00888, allocations: 0 / 0.9541 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005643/0.009444, allocations: 169.5 kB / 0.9542 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.009505, allocations: 59.41 kB / 0.9543 GB, free: 8 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.009625, allocations: 109.8 kB / 0.9544 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.009658, allocations: 29.7 kB / 0.9544 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.89e-05/0.009727, allocations: 92.36 kB / 0.9545 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.009764, allocations: 27.78 kB / 0.9545 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.188e-05/0.009836, allocations: 37.7 kB / 0.9546 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.009993, allocations: 314.8 kB / 0.9549 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.01012, allocations: 35.97 kB / 0.9549 GB, free: 7.328 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.01028, allocations: 69.06 kB / 0.955 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002788/0.01055, allocations: 102.5 kB / 0.9551 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01056, allocations: 384 / 0.9551 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003591/0.01092, allocations: 141.6 kB / 0.9552 GB, free: 7 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.01093, allocations: 7.938 kB / 0.9552 GB, free: 6.992 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.01094, allocations: 4 kB / 0.9552 GB, free: 6.988 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.01096, allocations: 3.938 kB / 0.9552 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.01112, allocations: 23.92 kB / 0.9552 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/0.01112, allocations: 4.062 kB / 0.9553 GB, free: 6.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.387e-05/0.01121, allocations: 19.88 kB / 0.9553 GB, free: 6.938 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.01122, allocations: 4 kB / 0.9553 GB, free: 6.934 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.000136/0.01136, allocations: 117.8 kB / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.01138, allocations: 11.94 kB / 0.9554 GB, free: 6.797 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004159/0.01179, allocations: 146 kB / 0.9555 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.0118, allocations: 4 kB / 0.9555 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.01181, allocations: 0 / 0.9555 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.01181, allocations: 4 kB / 0.9555 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005635/0.01237, allocations: 342.3 kB / 0.9559 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.01238, allocations: 8 kB / 0.9559 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-05/0.01245, allocations: 11.92 kB / 0.9559 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.01246, allocations: 4 kB / 0.9559 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.01247, allocations: 0 / 0.9559 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.01248, allocations: 0 / 0.9559 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01248, allocations: 0 / 0.9559 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004517/0.01293, allocations: 247.3 kB / 0.9561 GB, free: 5.988 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.377e-06/0.01294, allocations: 4 kB / 0.9561 GB, free: 5.984 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.01296, allocations: 0 / 0.9561 GB, free: 5.984 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.01307, allocations: 15.98 kB / 0.9561 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.01313, allocations: 8.266 kB / 0.9562 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.01314, allocations: 3.938 kB / 0.9562 GB, free: 5.957 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.014e-05/0.0132, allocations: 87.27 kB / 0.9562 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/0.0132, allocations: 3.938 kB / 0.9562 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002615/0.01346, allocations: 27.89 kB / 0.9563 GB, free: 5.84 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002141/0.01367, allocations: 107.2 kB / 0.9564 GB, free: 5.723 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000329/0.014, allocations: 95.88 kB / 0.9565 GB, free: 5.629 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.014, allocations: 0 / 0.9565 GB, free: 5.629 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.01416, allocations: 47.89 kB / 0.9565 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.01445, allocations: 15.92 kB / 0.9565 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004742/0.01493, allocations: 161.6 kB / 0.9567 GB, free: 5.383 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.052e-05/0.01501, allocations: 71.33 kB / 0.9568 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.055e-05/0.01505, allocations: 4.5 kB / 0.9568 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.122e-05/0.01509, allocations: 20.48 kB / 0.9568 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of SimCode: time 4.3e-07/0.01509, allocations: 0 / 0.9568 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of Templates: time 0.00464/0.01973, allocations: 1.07 MB / 0.9578 GB, free: 4.227 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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: 8.21206495538354]