Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001411/0.001411, allocations: 79.81 kB / 19.76 MB, free: 2.031 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.001683/0.001683, allocations: 157.6 kB / 23.01 MB, free: 4.945 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.463/1.463, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.72/2.72, allocations: 359.1 MB / 0.6044 GB, free: 14.98 MB / 0.5762 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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_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_11_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.002272/0.002272, allocations: 63.89 kB / 0.9515 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3206, allocations: 169.9 MB / 1.117 GB, free: 2.523 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001998/0.3226, allocations: 0.6545 MB / 1.118 GB, free: 1.867 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001543/0.3242, allocations: 1.096 MB / 1.119 GB, free: 0.7578 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.285e-05/0.3242, allocations: 4 kB / 1.119 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.974e-05/0.3243, allocations: 3.938 kB / 1.119 GB, free: 0.75 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.07e-05/0.3243, allocations: 3.938 kB / 1.119 GB, free: 0.7461 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.3247, allocations: 47.83 kB / 1.119 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.3248, allocations: 43.91 kB / 1.119 GB, free: 0.6562 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.3249, allocations: 8 kB / 1.119 GB, free: 0.6484 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.479e-05/0.325, allocations: 23.91 kB / 1.119 GB, free: 0.625 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.171e-05/0.325, allocations: 19.92 kB / 1.119 GB, free: 0.6055 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.325, allocations: 8 kB / 1.119 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.612e-05/0.3251, allocations: 27.92 kB / 1.119 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.05e-05/0.3251, allocations: 15.92 kB / 1.119 GB, free: 0.5547 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.3252, allocations: 19.92 kB / 1.119 GB, free: 0.5352 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.3253, allocations: 59.78 kB / 1.119 GB, free: 488 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3253, allocations: 0 / 1.119 GB, free: 488 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3253, allocations: 0 / 1.119 GB, free: 488 kB / 1.061 GB Notification: Performance of Transformations before backend: time 5.421e-06/0.3254, allocations: 0 / 1.119 GB, free: 488 kB / 1.061 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.0006301/0.326, allocations: 302.1 kB / 1.12 GB, free: 152 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.326, allocations: 8.031 kB / 1.12 GB, free: 144 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.433e-05/0.3261, allocations: 16.81 kB / 1.12 GB, free: 128 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.3262, allocations: 106.5 kB / 1.12 GB, free: 16 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.3262, allocations: 4.312 kB / 1.12 GB, free: 15.99 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.3263, allocations: 4.375 kB / 1.12 GB, free: 15.99 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.3265, allocations: 74.14 kB / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3265, allocations: 192 / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3265, allocations: 7.938 kB / 1.12 GB, free: 15.9 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3265, allocations: 0 / 1.12 GB, free: 15.9 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.3267, allocations: 43.95 kB / 1.12 GB, free: 15.86 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.3271, allocations: 220.5 kB / 1.12 GB, free: 15.61 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.3273, allocations: 54.48 kB / 1.12 GB, free: 15.55 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.3274, allocations: 28.91 kB / 1.12 GB, free: 15.52 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.3274, allocations: 4 kB / 1.12 GB, free: 15.52 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.3277, allocations: 79.44 kB / 1.12 GB, free: 15.43 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3277, allocations: 0 / 1.12 GB, free: 15.43 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0004361/0.3281, allocations: 129.6 kB / 1.12 GB, free: 15.29 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.3282, allocations: 59.34 kB / 1.121 GB, free: 15.22 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.718e-05/0.3282, allocations: 105.8 kB / 1.121 GB, free: 15.11 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3283, allocations: 25.7 kB / 1.121 GB, free: 15.08 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.3283, allocations: 84.14 kB / 1.121 GB, free: 14.99 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.3283, allocations: 23.78 kB / 1.121 GB, free: 14.97 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.972e-05/0.3284, allocations: 29.72 kB / 1.121 GB, free: 14.93 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3285, allocations: 318.8 kB / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.3286, allocations: 19.98 kB / 1.121 GB, free: 14.59 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.3288, allocations: 60.27 kB / 1.121 GB, free: 14.52 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.329, allocations: 96.19 kB / 1.121 GB, free: 14.41 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.329, allocations: 0 / 1.121 GB, free: 14.41 MB / 1.076 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000306/0.3293, allocations: 117.5 kB / 1.121 GB, free: 14.29 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3293, allocations: 10.66 kB / 1.121 GB, free: 14.28 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3293, allocations: 0 / 1.121 GB, free: 14.28 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3294, allocations: 0 / 1.121 GB, free: 14.28 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3295, allocations: 15.98 kB / 1.121 GB, free: 14.27 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.3295, allocations: 16.05 kB / 1.121 GB, free: 14.25 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.706e-05/0.3296, allocations: 11.95 kB / 1.121 GB, free: 14.24 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.3296, allocations: 4.25 kB / 1.121 GB, free: 14.23 MB / 1.076 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 0.0001159/0.3297, allocations: 117.8 kB / 1.122 GB, free: 14.11 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.3297, allocations: 8.172 kB / 1.122 GB, free: 14.1 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/0.33, allocations: 110 kB / 1.122 GB, free: 13.99 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.33, allocations: 11.88 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.33, allocations: 4 kB / 1.122 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.33, allocations: 4 kB / 1.122 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004694/0.3305, allocations: 306 kB / 1.122 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3305, allocations: 0 / 1.122 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.639e-05/0.3306, allocations: 8 kB / 1.122 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3306, allocations: 0 / 1.122 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.3306, allocations: 3.984 kB / 1.122 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3306, allocations: 3.938 kB / 1.122 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3306, allocations: 0 / 1.122 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003354/0.3309, allocations: 207.5 kB / 1.122 GB, free: 13.4 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.3309, allocations: 7.938 kB / 1.122 GB, free: 13.39 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.331, allocations: 0 / 1.122 GB, free: 13.39 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.3311, allocations: 11.98 kB / 1.122 GB, free: 13.38 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.3311, allocations: 4 kB / 1.122 GB, free: 13.38 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.3311, allocations: 4 kB / 1.122 GB, free: 13.37 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.953e-05/0.3312, allocations: 83.27 kB / 1.122 GB, free: 13.29 MB / 1.076 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3312, allocations: 0 / 1.122 GB, free: 13.29 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002615/0.3314, allocations: 16 kB / 1.122 GB, free: 13.27 MB / 1.076 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.0001534/0.3316, allocations: 99.25 kB / 1.122 GB, free: 13.17 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002901/0.3319, allocations: 75.81 kB / 1.122 GB, free: 13.09 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3319, allocations: 0 / 1.122 GB, free: 13.09 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.332, allocations: 35.91 kB / 1.122 GB, free: 13.06 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.3323, allocations: 8 kB / 1.122 GB, free: 13.05 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003953/0.3327, allocations: 146.3 kB / 1.123 GB, free: 12.88 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.647e-05/0.3327, allocations: 67.34 kB / 1.123 GB, free: 12.79 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.405e-05/0.3328, allocations: 4 kB / 1.123 GB, free: 12.79 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.3328, allocations: 12.5 kB / 1.123 GB, free: 12.78 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/0.3328, allocations: 0 / 1.123 GB, free: 12.78 MB / 1.076 GB Notification: Performance of Templates: time 0.003929/0.3367, allocations: 0.8752 MB / 1.124 GB, free: 11.93 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.64910222904291]