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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 107.5 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 193.1 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.604/2.604, allocations: 469.8 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 74.31 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2949, allocations: 159.1 MB / 1.064 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001989/0.2969, allocations: 0.7207 MB / 1.065 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.2985, allocations: 1.073 MB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.671e-05/0.2985, allocations: 0 / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.727e-05/0.2986, allocations: 3.938 kB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.046e-05/0.2987, allocations: 7.938 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.299, allocations: 35.95 kB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.2991, allocations: 47.86 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.2992, allocations: 11.98 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.567e-05/0.2993, allocations: 27.91 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.028e-05/0.2994, allocations: 19.92 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.2994, allocations: 4 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.407e-05/0.2995, allocations: 19.98 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.2995, allocations: 15.92 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.18e-05/0.2996, allocations: 19.92 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.2997, allocations: 39.92 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2997, allocations: 0 / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.334e-06/0.2997, allocations: 0 / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.2997, allocations: 0 / 1.066 GB, free: 13.04 MB / 0.8419 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.0006926/0.3004, allocations: 367.7 kB / 1.066 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.3005, allocations: 12.03 kB / 1.067 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.3005, allocations: 8.859 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.3007, allocations: 176.2 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.3007, allocations: 4.375 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.3008, allocations: 8.312 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.301, allocations: 66.22 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.301, allocations: 4.188 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.3011, allocations: 3.938 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3011, allocations: 0 / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.3013, allocations: 51.94 kB / 1.067 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.3018, allocations: 276.8 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.302, allocations: 62.48 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.95e-05/0.3021, allocations: 28.97 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3021, allocations: 4 kB / 1.067 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.3023, allocations: 75.36 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.3023, allocations: 0 / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004313/0.3027, allocations: 133.5 kB / 1.067 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.3028, allocations: 55.41 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.3029, allocations: 101.8 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.3029, allocations: 33.7 kB / 1.068 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.545e-05/0.303, allocations: 84.12 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.303, allocations: 23.66 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-05/0.3031, allocations: 25.72 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3032, allocations: 318.8 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.736e-05/0.3033, allocations: 27.97 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.3035, allocations: 56.22 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.3037, allocations: 100.1 kB / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3037, allocations: 0 / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002623/0.304, allocations: 117.7 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.304, allocations: 4 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.304, allocations: 4 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.304, allocations: 0 / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.3042, allocations: 19.92 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.3042, allocations: 7.984 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.8e-05/0.3043, allocations: 7.906 kB / 1.068 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.3043, allocations: 4 kB / 1.068 GB, free: 10.55 MB / 0.8419 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.0001068/0.3044, allocations: 125.8 kB / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.3044, allocations: 7.938 kB / 1.068 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.3047, allocations: 106 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3047, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3047, allocations: 192 / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.3047, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004802/0.3052, allocations: 374.4 kB / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3052, allocations: 0 / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.3053, allocations: 11.98 kB / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3053, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.3053, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3053, allocations: 256 / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3053, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.3056, allocations: 211.3 kB / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.602e-05/0.3057, allocations: 85.02 kB / 1.069 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.3057, allocations: 0 / 1.069 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/0.3058, allocations: 7.984 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.3059, allocations: 15.92 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.3059, allocations: 3.938 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.929e-05/0.3059, allocations: 83.28 kB / 1.069 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3059, allocations: 0 / 1.069 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002372/0.3062, allocations: 16 kB / 1.069 GB, free: 9.422 MB / 0.8419 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.000154/0.3063, allocations: 108.9 kB / 1.069 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002618/0.3066, allocations: 71.89 kB / 1.069 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3066, allocations: 0 / 1.069 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.3067, allocations: 35.97 kB / 1.07 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.307, allocations: 12.23 kB / 1.07 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003571/0.3074, allocations: 175.7 kB / 1.07 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.3077, allocations: 0.6846 MB / 1.07 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.3078, allocations: 15.44 kB / 1.07 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of SimCode: time 1.81e-07/0.3078, allocations: 0 / 1.07 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of Templates: time 0.002552/0.3103, allocations: 0.9013 MB / 1.071 GB, free: 7.363 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (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 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) 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) Reference file matches