Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001725/0.001725, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002095/0.002095, allocations: 207 kB / 22.99 MB, free: 4.957 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.502/1.502, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.269/3.269, allocations: 0.49 GB / 0.7959 GB, free: 35.62 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_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_12_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.002084/0.002084, allocations: 64.61 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3217, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001906/0.3237, allocations: 0.6845 MB / 1.328 GB, free: 332 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.3251, allocations: 1.101 MB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.827e-05/0.3251, allocations: 0 / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.3251, allocations: 7.875 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.669e-05/0.3252, allocations: 7.938 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.3255, allocations: 59.81 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.3256, allocations: 63.84 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.992e-05/0.3257, allocations: 11.98 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.855e-05/0.3258, allocations: 27.91 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.518e-05/0.3259, allocations: 43.84 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.3259, allocations: 4 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.274e-05/0.3259, allocations: 23.98 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.326, allocations: 8 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.071e-05/0.326, allocations: 27.84 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.3262, allocations: 75.75 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3262, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3262, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.3262, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 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.0006295/0.3268, allocations: 322.1 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.3268, allocations: 8.031 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.605e-05/0.3269, allocations: 4.938 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.3271, allocations: 114.4 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.3271, allocations: 12.31 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.3271, allocations: 4.375 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.3273, allocations: 78.2 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.3273, allocations: 192 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.3273, allocations: 7.938 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3273, allocations: 4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.3276, allocations: 51.95 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005233/0.3281, allocations: 244.4 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.3283, allocations: 74.53 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.3284, allocations: 40.72 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.3284, allocations: 11.98 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.3287, allocations: 95.44 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.3287, allocations: 0 / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005094/0.3292, allocations: 169.5 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3292, allocations: 55.41 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/0.3293, allocations: 113.8 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.3294, allocations: 29.7 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.3294, allocations: 92.36 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.3294, allocations: 23.91 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/0.3295, allocations: 41.64 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3296, allocations: 314.8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.3298, allocations: 39.97 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.3299, allocations: 58.55 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.3302, allocations: 102.5 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3302, allocations: 0 / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003659/0.3305, allocations: 145.5 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3305, allocations: 5.25 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.3306, allocations: 4 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3306, allocations: 0 / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.3307, allocations: 23.92 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3307, allocations: 4 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.351e-05/0.3308, allocations: 24.19 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.3308, allocations: 0 / 1.331 GB, free: 12.39 MB / 1.029 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.0001084/0.3309, allocations: 134.2 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.3309, allocations: 8 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003672/0.3313, allocations: 150.2 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-06/0.3313, allocations: 4 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3313, allocations: 0 / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3313, allocations: 7.984 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005216/0.3318, allocations: 346 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3319, allocations: 7.984 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.343e-05/0.3319, allocations: 7.938 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3319, allocations: 4 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3319, allocations: 3.984 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3319, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3319, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003769/0.3323, allocations: 243.3 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.695e-06/0.3323, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.3324, allocations: 7.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.3325, allocations: 11.98 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.3325, allocations: 4 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.3325, allocations: 3.984 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.992e-05/0.3326, allocations: 83.28 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3326, allocations: 4 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000254/0.3328, allocations: 16 kB / 1.332 GB, free: 11.29 MB / 1.029 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.0001496/0.333, allocations: 111.2 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003372/0.3333, allocations: 99.81 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3333, allocations: 0 / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.3335, allocations: 44.19 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.3337, allocations: 13.69 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.3341, allocations: 166.9 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.799e-05/0.3342, allocations: 75.19 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.724e-05/0.3342, allocations: 8.422 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.543e-05/0.3343, allocations: 11.44 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of SimCode: time 5.61e-07/0.3343, allocations: 0 / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of Templates: time 0.004/0.3383, allocations: 1.125 MB / 1.334 GB, free: 9.613 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.707824951998191]