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.007556/0.007556, allocations: 97.36 kB / 15.73 MB, free: 6.039 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.001678/0.001678, allocations: 201.9 kB / 16.68 MB, free: 5.961 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.791/2.791, allocations: 469.8 MB / 0.7425 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 67.89 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3287, allocations: 159.1 MB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001844/0.3306, allocations: 0.6835 MB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3319, allocations: 1.055 MB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/0.332, allocations: 0 / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.272e-05/0.332, allocations: 7.922 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.169e-05/0.3321, allocations: 15.92 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.3324, allocations: 35.84 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.3325, allocations: 63.77 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.569e-05/0.3326, allocations: 8 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.079e-05/0.3326, allocations: 19.92 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.731e-05/0.3327, allocations: 19.92 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.3327, allocations: 4 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.82e-05/0.3328, allocations: 15.98 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.3328, allocations: 15.97 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.3329, allocations: 23.86 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.333, allocations: 59.78 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.333, allocations: 0 / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.333, allocations: 4 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.333, allocations: 0 / 1.223 GB, free: 11.78 MB / 0.9825 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.0006335/0.3337, allocations: 375.2 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3337, allocations: 12.02 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.3337, allocations: 4.938 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3339, allocations: 172.3 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.3339, allocations: 4.375 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.3339, allocations: 4.375 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.3341, allocations: 70.2 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3341, allocations: 192 / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.3341, allocations: 7.938 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3341, allocations: 0 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.3343, allocations: 47.88 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004602/0.3348, allocations: 284.9 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.3349, allocations: 54.48 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.824e-05/0.335, allocations: 28.97 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.335, allocations: 0 / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.3353, allocations: 87.27 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.3353, allocations: 0 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003978/0.3357, allocations: 117.6 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.3357, allocations: 51.41 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.147e-05/0.3358, allocations: 105.8 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3358, allocations: 33.64 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.3358, allocations: 84.12 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.3359, allocations: 31.86 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.3359, allocations: 25.7 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.336, allocations: 314.8 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.474e-05/0.3361, allocations: 27.97 kB / 1.224 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.3362, allocations: 64.2 kB / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.3364, allocations: 92.14 kB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3364, allocations: 0 / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002642/0.3367, allocations: 121.5 kB / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3367, allocations: 8 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.3367, allocations: 0 / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3367, allocations: 4 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3369, allocations: 19.97 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3369, allocations: 3.938 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.3369, allocations: 4 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.3369, allocations: 8.125 kB / 1.225 GB, free: 9.301 MB / 0.9825 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.0001016/0.337, allocations: 128.1 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.3371, allocations: 7.953 kB / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002849/0.3373, allocations: 102 kB / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3373, allocations: 4 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3374, allocations: 0 / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3374, allocations: 0 / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.3378, allocations: 370.4 kB / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3378, allocations: 256 / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.209e-05/0.3379, allocations: 11.98 kB / 1.225 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3379, allocations: 4 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-06/0.3379, allocations: 0 / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3379, allocations: 0 / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3379, allocations: 4 kB / 1.225 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.3382, allocations: 207.3 kB / 1.226 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.84e-05/0.3382, allocations: 77.11 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.3382, allocations: 0 / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.561e-05/0.3383, allocations: 7.984 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.3384, allocations: 11.98 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.3384, allocations: 7.938 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.128e-05/0.3384, allocations: 83.47 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3384, allocations: 0 / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002478/0.3387, allocations: 23.92 kB / 1.226 GB, free: 8.16 MB / 0.9825 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.0001713/0.3388, allocations: 103.3 kB / 1.226 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002662/0.3391, allocations: 71.88 kB / 1.226 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3391, allocations: 0 / 1.226 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.3392, allocations: 36.16 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3395, allocations: 12.69 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003732/0.3399, allocations: 145.8 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.3401, allocations: 0.6846 MB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.108e-05/0.3402, allocations: 7.938 kB / 1.227 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.3402, allocations: 15.44 kB / 1.227 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of SimCode: time 4.91e-07/0.3402, allocations: 0 / 1.227 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of Templates: time 0.003427/0.3436, allocations: 0.8368 MB / 1.228 GB, free: 6.207 MB / 0.9825 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=480 -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/jenkins/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