Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.007674/0.007675, allocations: 100.3 kB / 15.87 MB, free: 5.867 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.001802/0.001802, allocations: 192.6 kB / 16.79 MB, free: 5.809 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.405/1.405, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.77/2.77, allocations: 461.9 MB / 0.7348 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 62.45 kB / 0.8991 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3223, allocations: 157.4 MB / 1.053 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002438/0.3248, allocations: 0.7346 MB / 1.053 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.3264, allocations: 1.069 MB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/0.3264, allocations: 0 / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.254e-05/0.3265, allocations: 7.938 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.483e-05/0.3266, allocations: 7.984 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.3269, allocations: 35.91 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.107e-05/0.327, allocations: 47.84 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.3271, allocations: 8 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.206e-05/0.3272, allocations: 23.91 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.682e-05/0.3273, allocations: 19.92 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.3273, allocations: 4 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.016e-05/0.3274, allocations: 19.98 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.3274, allocations: 7.922 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.3274, allocations: 23.92 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.3276, allocations: 35.92 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3276, allocations: 0 / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3276, allocations: 0 / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.3276, allocations: 4 kB / 1.055 GB, free: 6.168 MB / 0.8106 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.0006202/0.3282, allocations: 375.5 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3283, allocations: 12.03 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.687e-05/0.3283, allocations: 4.938 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.3285, allocations: 172.2 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3285, allocations: 8.375 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.3285, allocations: 4.375 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.3287, allocations: 62.22 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3287, allocations: 192 / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.3288, allocations: 3.938 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3288, allocations: 4 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.329, allocations: 47.95 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004698/0.3294, allocations: 280.8 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.3296, allocations: 58.48 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3297, allocations: 36.97 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.3298, allocations: 3.984 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.33, allocations: 71.39 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.33, allocations: 0 / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004316/0.3304, allocations: 137.5 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.3305, allocations: 55.39 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.081e-05/0.3306, allocations: 101.9 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3306, allocations: 25.7 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.486e-05/0.3307, allocations: 92.12 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.3307, allocations: 15.75 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.3307, allocations: 25.7 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3309, allocations: 318.8 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.331, allocations: 27.97 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.3311, allocations: 60.27 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.3313, allocations: 96.08 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3313, allocations: 4 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002832/0.3316, allocations: 113.5 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3316, allocations: 4 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3317, allocations: 4.125 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3317, allocations: 7.984 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3318, allocations: 19.92 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3318, allocations: 0 / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.97e-05/0.3319, allocations: 11.94 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3319, allocations: 4 kB / 1.057 GB, free: 3.688 MB / 0.8106 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.0001007/0.332, allocations: 125.8 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.5e-05/0.332, allocations: 3.906 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002874/0.3323, allocations: 110 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3323, allocations: 4 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3324, allocations: 256 / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3324, allocations: 0 / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.3328, allocations: 366.4 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3328, allocations: 0 / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.647e-05/0.3329, allocations: 15.98 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3329, allocations: 0 / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3329, allocations: 4.188 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3329, allocations: 0 / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3329, allocations: 3.938 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003013/0.3332, allocations: 203.3 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.3333, allocations: 81.11 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.3333, allocations: 3.984 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.3335, allocations: 8 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.3335, allocations: 3.984 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.3335, allocations: 11.94 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.675e-05/0.3336, allocations: 83.27 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3336, allocations: 3.938 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002508/0.3338, allocations: 16 kB / 1.058 GB, free: 2.555 MB / 0.8106 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.0001711/0.334, allocations: 111.1 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002778/0.3343, allocations: 71.88 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3343, allocations: 0 / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.3344, allocations: 27.98 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.3347, allocations: 13.8 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003782/0.3351, allocations: 177.4 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.3354, allocations: 0.6926 MB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.519e-05/0.3354, allocations: 11.44 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of SimCode: time 4.91e-07/0.3354, allocations: 0 / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of Templates: time 0.002641/0.3381, allocations: 0.8987 MB / 1.06 GB, free: 0.5 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches