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.001874/0.001874, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.00243/0.00243, allocations: 220 kB / 23.01 MB, free: 4.609 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.484/1.484, allocations: 230.6 MB / 256.8 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.708/2.708, allocations: 476.7 MB / 0.7714 GB, free: 4.375 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 72.92 kB / 1.119 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3138, allocations: 170 MB / 1.285 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002011/0.3158, allocations: 0.6931 MB / 1.285 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3173, allocations: 1.118 MB / 1.286 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.651e-05/0.3173, allocations: 0 / 1.286 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.3173, allocations: 3.938 kB / 1.286 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.559e-05/0.3174, allocations: 15.92 kB / 1.286 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.3177, allocations: 55.81 kB / 1.286 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.3178, allocations: 67.84 kB / 1.287 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.268e-05/0.3179, allocations: 7.984 kB / 1.287 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.604e-05/0.318, allocations: 27.92 kB / 1.287 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.039e-05/0.318, allocations: 35.83 kB / 1.287 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.3181, allocations: 8 kB / 1.287 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.615e-05/0.3181, allocations: 23.98 kB / 1.287 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.3182, allocations: 11.98 kB / 1.287 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.469e-05/0.3182, allocations: 31.84 kB / 1.287 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.3184, allocations: 87.69 kB / 1.287 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3184, allocations: 3.938 kB / 1.287 GB, free: 1.137 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3184, allocations: 4 kB / 1.287 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3184, allocations: 0 / 1.287 GB, free: 1.133 MB / 0.9825 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.0006659/0.319, allocations: 306.1 kB / 1.287 GB, free: 0.8008 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3191, allocations: 12.03 kB / 1.287 GB, free: 0.7891 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.849e-05/0.3192, allocations: 4.938 kB / 1.287 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.3193, allocations: 118.4 kB / 1.287 GB, free: 0.6445 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.3193, allocations: 8.375 kB / 1.287 GB, free: 0.6367 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.3193, allocations: 8.375 kB / 1.287 GB, free: 0.6289 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.3195, allocations: 78.2 kB / 1.287 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3195, allocations: 192 / 1.287 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.3196, allocations: 7.938 kB / 1.287 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3196, allocations: 0 / 1.287 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.3198, allocations: 55.89 kB / 1.287 GB, free: 496 kB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000525/0.3203, allocations: 287.8 kB / 1.288 GB, free: 164 kB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.3205, allocations: 78.47 kB / 1.288 GB, free: 76 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3206, allocations: 36.83 kB / 1.288 GB, free: 36 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.3206, allocations: 4 kB / 1.288 GB, free: 32 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.3209, allocations: 95.56 kB / 1.288 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.472e-06/0.3209, allocations: 0 / 1.288 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0005009/0.3214, allocations: 169.5 kB / 1.288 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.3214, allocations: 59.39 kB / 1.288 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.058e-05/0.3215, allocations: 109.8 kB / 1.288 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.3215, allocations: 37.7 kB / 1.288 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.3216, allocations: 84.33 kB / 1.288 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.3216, allocations: 31.78 kB / 1.288 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.271e-05/0.3217, allocations: 30.09 kB / 1.288 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.3218, allocations: 322.8 kB / 1.289 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.3219, allocations: 35.97 kB / 1.289 GB, free: 15.01 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.3221, allocations: 62.55 kB / 1.289 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.3223, allocations: 106.3 kB / 1.289 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3223, allocations: 0 / 1.289 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000334/0.3227, allocations: 145.6 kB / 1.289 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3227, allocations: 8 kB / 1.289 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3227, allocations: 0 / 1.289 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3227, allocations: 0 / 1.289 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.3228, allocations: 23.92 kB / 1.289 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3228, allocations: 0 / 1.289 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.857e-05/0.3229, allocations: 19.94 kB / 1.289 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.3229, allocations: 4 kB / 1.289 GB, free: 14.62 MB / 0.9981 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.0001057/0.323, allocations: 130.2 kB / 1.289 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.3231, allocations: 7.984 kB / 1.289 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003475/0.3234, allocations: 137.9 kB / 1.289 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3234, allocations: 4 kB / 1.289 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3234, allocations: 0 / 1.289 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3234, allocations: 0 / 1.289 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.324, allocations: 385.4 kB / 1.29 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.324, allocations: 0 / 1.29 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.009e-05/0.324, allocations: 15.92 kB / 1.29 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.324, allocations: 0 / 1.29 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3241, allocations: 8 kB / 1.29 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3241, allocations: 0 / 1.29 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3241, allocations: 256 / 1.29 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003544/0.3244, allocations: 239.5 kB / 1.29 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.3244, allocations: 8.047 kB / 1.29 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.3245, allocations: 11.94 kB / 1.29 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.3246, allocations: 11.98 kB / 1.29 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.3246, allocations: 3.984 kB / 1.29 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.3246, allocations: 7.938 kB / 1.29 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.829e-05/0.3247, allocations: 83.28 kB / 1.29 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3247, allocations: 0 / 1.29 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002541/0.3249, allocations: 23.98 kB / 1.29 GB, free: 13.48 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: 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.0001506/0.3251, allocations: 111.2 kB / 1.29 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003244/0.3254, allocations: 95.88 kB / 1.29 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3254, allocations: 0 / 1.29 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.3255, allocations: 43.91 kB / 1.29 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3258, allocations: 21.64 kB / 1.29 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005221/0.3263, allocations: 180.5 kB / 1.29 GB, free: 13 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.3268, allocations: 0.6885 MB / 1.291 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/0.3268, allocations: 15.44 kB / 1.291 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/0.3269, allocations: 0 / 1.291 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of Templates: time 0.003716/0.3306, allocations: 1.101 MB / 1.292 GB, free: 11.17 MB / 0.9981 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/jenkins1/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: 10.900890996010276]