Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.00156/0.00156, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002038/0.002038, allocations: 210.8 kB / 22.99 MB, free: 4.984 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.462/1.462, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.141/3.141, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] 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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [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.002068/0.002068, allocations: 75.53 kB / 1.155 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3139, allocations: 176.1 MB / 1.327 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001963/0.3159, allocations: 0.669 MB / 1.328 GB, free: 412 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001495/0.3174, allocations: 1.097 MB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.304e-05/0.3174, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.03e-05/0.3175, allocations: 3.984 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.323e-05/0.3175, allocations: 11.86 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.3178, allocations: 43.84 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000111/0.3179, allocations: 51.84 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.241e-05/0.318, allocations: 15.98 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.629e-05/0.3181, allocations: 19.92 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.404e-05/0.3181, allocations: 23.92 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.3182, allocations: 4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.07e-05/0.3182, allocations: 23.92 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.3182, allocations: 15.97 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.475e-05/0.3183, allocations: 15.88 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.3184, allocations: 63.77 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3184, allocations: 4 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3184, allocations: 0 / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.3184, allocations: 4 kB / 1.329 GB, free: 15 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006144/0.3191, allocations: 286.2 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3191, allocations: 12.03 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.87e-05/0.3192, allocations: 8.891 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.3193, allocations: 110.5 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3193, allocations: 4.375 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.3193, allocations: 8.375 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.3196, allocations: 66.16 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3196, allocations: 8.172 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3196, allocations: 3.938 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3196, allocations: 4 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.3198, allocations: 43.95 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.3202, allocations: 216.5 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.3204, allocations: 58.42 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.3205, allocations: 36.91 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.3205, allocations: 0 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.3208, allocations: 75.38 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.3208, allocations: 0 / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004414/0.3212, allocations: 125.6 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.3212, allocations: 55.34 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.336e-05/0.3213, allocations: 105.8 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.3214, allocations: 33.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.3214, allocations: 84.14 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.3214, allocations: 27.89 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.3215, allocations: 17.72 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3216, allocations: 322.8 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.3217, allocations: 28.17 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.3219, allocations: 56.27 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.3221, allocations: 96.19 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3221, allocations: 0 / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003098/0.3224, allocations: 125.4 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.3224, allocations: 4 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.3224, allocations: 4.125 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3225, allocations: 4 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.3226, allocations: 15.98 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.3226, allocations: 3.938 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.838e-05/0.3227, allocations: 15.98 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/0.3227, allocations: 0 / 1.331 GB, free: 12.77 MB / 1.029 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.635e-05/0.3228, allocations: 124.5 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.3228, allocations: 3.953 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.3231, allocations: 118.2 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3231, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3231, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3231, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.3236, allocations: 302.2 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3236, allocations: 0 / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.166e-05/0.3237, allocations: 11.98 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3237, allocations: 0 / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.3237, allocations: 3.938 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3237, allocations: 11.94 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.3237, allocations: 0 / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.324, allocations: 199.4 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.619e-05/0.324, allocations: 15.92 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.324, allocations: 3.984 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.3241, allocations: 8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.678e-05/0.3242, allocations: 7.984 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.3242, allocations: 0 / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.219e-05/0.3242, allocations: 91.27 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3242, allocations: 4 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000252/0.3245, allocations: 8 kB / 1.332 GB, free: 11.8 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001388/0.3246, allocations: 99.25 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002826/0.3249, allocations: 79.8 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3249, allocations: 192 / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.325, allocations: 36.17 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3253, allocations: 22.34 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.3257, allocations: 136.7 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.013e-05/0.3257, allocations: 67.33 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.473e-05/0.3258, allocations: 4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.3258, allocations: 11.44 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of SimCode: time 2.71e-07/0.3258, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of Templates: time 0.003739/0.3295, allocations: 0.9069 MB / 1.333 GB, free: 10.41 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.524284596001962]