Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 110.4 kB / 17.08 MB, free: 5.82 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 193.2 kB / 20.03 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 245.7 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.763/2.763, allocations: 437.1 MB / 0.7177 GB, free: 4.555 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 67.89 kB / 1.028 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3058, allocations: 151.6 MB / 1.176 GB, free: 5.926 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001812/0.3076, allocations: 0.6801 MB / 1.176 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.3091, allocations: 1.058 MB / 1.178 GB, free: 4.164 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.731e-05/0.3091, allocations: 0 / 1.178 GB, free: 4.164 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.143e-05/0.3092, allocations: 7.938 kB / 1.178 GB, free: 4.156 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.875e-05/0.3092, allocations: 7.938 kB / 1.178 GB, free: 4.148 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.3095, allocations: 39.83 kB / 1.178 GB, free: 4.109 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.3096, allocations: 51.84 kB / 1.178 GB, free: 4.059 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.3097, allocations: 19.97 kB / 1.178 GB, free: 4.039 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.672e-05/0.3098, allocations: 15.94 kB / 1.178 GB, free: 4.023 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.682e-05/0.3099, allocations: 27.84 kB / 1.178 GB, free: 3.996 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.3099, allocations: 4 kB / 1.178 GB, free: 3.992 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.527e-05/0.31, allocations: 19.92 kB / 1.178 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.512e-05/0.31, allocations: 19.98 kB / 1.178 GB, free: 3.953 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.702e-05/0.31, allocations: 19.86 kB / 1.178 GB, free: 3.934 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.3102, allocations: 59.78 kB / 1.178 GB, free: 3.875 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3102, allocations: 3.984 kB / 1.178 GB, free: 3.871 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3102, allocations: 0 / 1.178 GB, free: 3.871 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.3102, allocations: 0 / 1.178 GB, free: 3.871 MB / 0.92 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.000634/0.3109, allocations: 367.3 kB / 1.178 GB, free: 3.461 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.3109, allocations: 16.03 kB / 1.178 GB, free: 3.445 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.3109, allocations: 0.9375 kB / 1.178 GB, free: 3.445 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.3111, allocations: 176.3 kB / 1.178 GB, free: 3.234 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.3111, allocations: 384 / 1.178 GB, free: 3.234 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.3111, allocations: 4.375 kB / 1.178 GB, free: 3.23 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.3113, allocations: 66.17 kB / 1.178 GB, free: 3.16 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3114, allocations: 4.172 kB / 1.178 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3114, allocations: 7.938 kB / 1.178 GB, free: 3.148 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3114, allocations: 0 / 1.178 GB, free: 3.148 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.3116, allocations: 39.97 kB / 1.178 GB, free: 3.109 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004584/0.3121, allocations: 284.8 kB / 1.179 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.3122, allocations: 54.48 kB / 1.179 GB, free: 2.719 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3124, allocations: 32.95 kB / 1.179 GB, free: 2.684 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.3124, allocations: 4 kB / 1.179 GB, free: 2.68 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.3126, allocations: 79.44 kB / 1.179 GB, free: 2.59 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.3126, allocations: 0 / 1.179 GB, free: 2.59 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004536/0.3131, allocations: 133.5 kB / 1.179 GB, free: 2.453 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.3132, allocations: 55.41 kB / 1.179 GB, free: 2.387 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.095e-05/0.3133, allocations: 105.8 kB / 1.179 GB, free: 2.273 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.3133, allocations: 29.7 kB / 1.179 GB, free: 2.238 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.965e-05/0.3134, allocations: 84.14 kB / 1.179 GB, free: 2.152 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.3134, allocations: 19.84 kB / 1.179 GB, free: 2.133 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.775e-05/0.3134, allocations: 25.72 kB / 1.179 GB, free: 2.102 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3136, allocations: 318.8 kB / 1.18 GB, free: 1.781 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.3137, allocations: 27.98 kB / 1.18 GB, free: 1.754 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.3138, allocations: 56.27 kB / 1.18 GB, free: 1.684 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.3141, allocations: 104.1 kB / 1.18 GB, free: 1.566 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3141, allocations: 0 / 1.18 GB, free: 1.566 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002894/0.3144, allocations: 109.8 kB / 1.18 GB, free: 1.453 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.3144, allocations: 4 kB / 1.18 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3144, allocations: 7.938 kB / 1.18 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3144, allocations: 128 / 1.18 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.3146, allocations: 23.92 kB / 1.18 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.3146, allocations: 4 kB / 1.18 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.384e-05/0.3147, allocations: 20.12 kB / 1.18 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.3147, allocations: 4 kB / 1.18 GB, free: 1.391 MB / 0.92 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.29e-05/0.3148, allocations: 119.7 kB / 1.18 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.3148, allocations: 8 kB / 1.18 GB, free: 1.258 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.3151, allocations: 113.9 kB / 1.18 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3151, allocations: 0 / 1.18 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3151, allocations: 0 / 1.18 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.3151, allocations: 7.922 kB / 1.18 GB, free: 1.133 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000511/0.3157, allocations: 362.4 kB / 1.181 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3157, allocations: 4 kB / 1.181 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.301e-05/0.3157, allocations: 7.984 kB / 1.181 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.3158, allocations: 8 kB / 1.181 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.3158, allocations: 4 kB / 1.181 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3158, allocations: 0 / 1.181 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3158, allocations: 0 / 1.181 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/0.3161, allocations: 191.9 kB / 1.181 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.3162, allocations: 81.06 kB / 1.181 GB, free: 408 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.3162, allocations: 8 kB / 1.181 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.79e-05/0.3163, allocations: 11.98 kB / 1.181 GB, free: 388 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.251e-05/0.3163, allocations: 4 kB / 1.181 GB, free: 384 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.3163, allocations: 7.922 kB / 1.181 GB, free: 376 kB / 0.92 GB Notification: Performance of sorting global known variables: time 5.72e-05/0.3164, allocations: 87.22 kB / 1.181 GB, free: 288 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3164, allocations: 0 / 1.181 GB, free: 288 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002435/0.3167, allocations: 12 kB / 1.181 GB, free: 276 kB / 0.92 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.0001619/0.3168, allocations: 111.2 kB / 1.181 GB, free: 156 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002737/0.3171, allocations: 75.95 kB / 1.181 GB, free: 80 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3171, allocations: 4 kB / 1.181 GB, free: 76 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3173, allocations: 31.97 kB / 1.181 GB, free: 44 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.3175, allocations: 6.406 kB / 1.181 GB, free: 40 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003654/0.3179, allocations: 175.8 kB / 1.181 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3182, allocations: 0.6846 MB / 1.182 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.773e-05/0.3183, allocations: 11.44 kB / 1.182 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.3183, allocations: 0 / 1.182 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of Templates: time 0.002641/0.3209, allocations: 0.9075 MB / 1.183 GB, free: 14.2 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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: 10.309012560988776]