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.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.001227/0.001227, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001825/0.003051, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001086/0.001086, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001438/0.002524, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.001/1.001, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1222/1.123, allocations: 53.65 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.738/2.738, allocations: 446.7 MB / 0.6745 GB, free: 6.164 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2612/2.999, allocations: 145.9 MB / 0.817 GB, free: 4.168 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 0.8183 GB, free: 2.891 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.422e-05/2.639e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.887 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002261/0.002287, allocations: 0.7305 MB / 0.819 GB, free: 2.152 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.003834, allocations: 1.131 MB / 0.8201 GB, free: 1.008 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.472e-05/0.003879, allocations: 0 / 0.8201 GB, free: 1.008 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/0.00391, allocations: 3.938 kB / 0.8201 GB, free: 1.004 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 5.232e-05/0.003962, allocations: 11.88 kB / 0.8201 GB, free: 0.9922 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.004184, allocations: 43.77 kB / 0.8201 GB, free: 0.9492 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.004299, allocations: 59.78 kB / 0.8202 GB, free: 0.8906 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 8.439e-05/0.004384, allocations: 3.984 kB / 0.8202 GB, free: 0.8867 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.004486, allocations: 35.97 kB / 0.8202 GB, free: 0.8516 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 6.105e-05/0.004547, allocations: 15.92 kB / 0.8203 GB, free: 0.8359 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.004565, allocations: 8 kB / 0.8203 GB, free: 0.8281 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 9.976e-05/0.004664, allocations: 23.97 kB / 0.8203 GB, free: 0.8047 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.004683, allocations: 4 kB / 0.8203 GB, free: 0.8008 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.004713, allocations: 15.94 kB / 0.8203 GB, free: 0.7852 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.004852, allocations: 47.83 kB / 0.8204 GB, free: 0.7383 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.671e-05/0.004869, allocations: 4 kB / 0.8204 GB, free: 0.7344 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.212e-06/0.00487, allocations: 0 / 0.8204 GB, free: 0.7344 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.645e-05/0.004886, allocations: 0 / 0.8204 GB, free: 0.7344 MB / 0.7917 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.0005376/0.005424, allocations: 272.4 kB / 0.8206 GB, free: 452 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.00546, allocations: 16.03 kB / 0.8206 GB, free: 436 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.005603, allocations: 85.98 kB / 0.8207 GB, free: 332 kB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.005705, allocations: 117.7 kB / 0.8208 GB, free: 188 kB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.005717, allocations: 384 / 0.8208 GB, free: 188 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.005732, allocations: 12.36 kB / 0.8208 GB, free: 176 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.005871, allocations: 62.92 kB / 0.8209 GB, free: 104 kB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.005882, allocations: 192 / 0.8209 GB, free: 104 kB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.005893, allocations: 4.375 kB / 0.8209 GB, free: 100 kB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.005901, allocations: 4.375 kB / 0.8209 GB, free: 96 kB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.738e-05/0.005948, allocations: 11.92 kB / 0.8209 GB, free: 84 kB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003529/0.006301, allocations: 168.2 kB / 0.8211 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.547e-05/0.006386, allocations: 34.56 kB / 0.8211 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.18e-05/0.006408, allocations: 8.859 kB / 0.8211 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.006429, allocations: 0 / 0.8211 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.00653, allocations: 63.58 kB / 0.8212 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.006532, allocations: 3.938 kB / 0.8212 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.000137/0.006669, allocations: 61.61 kB / 0.8212 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.006712, allocations: 51.41 kB / 0.8213 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.829e-05/0.00678, allocations: 110.7 kB / 0.8214 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.006795, allocations: 29.7 kB / 0.8214 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.783e-05/0.006833, allocations: 92.08 kB / 0.8215 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.006857, allocations: 19.84 kB / 0.8215 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.006903, allocations: 21.7 kB / 0.8216 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.006998, allocations: 318.8 kB / 0.8219 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.913e-05/0.007017, allocations: 7.984 kB / 0.8219 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.118e-05/0.007058, allocations: 44.23 kB / 0.8219 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.05e-05/0.007129, allocations: 60.12 kB / 0.822 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.007131, allocations: 4 kB / 0.822 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001084/0.007239, allocations: 69.55 kB / 0.822 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.007253, allocations: 4 kB / 0.822 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.00726, allocations: 4 kB / 0.822 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.007269, allocations: 3.938 kB / 0.822 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.144e-05/0.00736, allocations: 19.98 kB / 0.8221 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.007366, allocations: 4 kB / 0.8221 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.042e-05/0.007407, allocations: 4 kB / 0.8221 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.007414, allocations: 4.125 kB / 0.8221 GB, free: 14.76 MB / 0.8073 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 7.109e-05/0.007486, allocations: 125.7 kB / 0.8222 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.007497, allocations: 4 kB / 0.8222 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.631e-05/0.007594, allocations: 62.41 kB / 0.8223 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.007598, allocations: 3.938 kB / 0.8223 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.007599, allocations: 0 / 0.8223 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.007603, allocations: 0 / 0.8223 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.007811, allocations: 214.7 kB / 0.8225 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.007812, allocations: 0 / 0.8225 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.441e-05/0.007856, allocations: 11.98 kB / 0.8225 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.466e-06/0.007865, allocations: 11.92 kB / 0.8225 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.007866, allocations: 0 / 0.8225 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.007872, allocations: 4 kB / 0.8225 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.007874, allocations: 0 / 0.8225 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.007875, allocations: 0 / 0.8225 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.007979, allocations: 151.5 kB / 0.8226 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.007996, allocations: 4.188 kB / 0.8226 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/0.008069, allocations: 15.98 kB / 0.8227 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.173e-05/0.008101, allocations: 7.984 kB / 0.8227 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.008111, allocations: 0 / 0.8227 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.53e-05/0.008126, allocations: 8.859 kB / 0.8227 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.008126, allocations: 4 kB / 0.8227 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002243/0.008351, allocations: 16 kB / 0.8227 GB, free: 14.07 MB / 0.8073 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.0001253/0.008476, allocations: 88.34 kB / 0.8228 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.63e-05/0.008572, allocations: 36.78 kB / 0.8228 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.008578, allocations: 0 / 0.8228 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.847e-05/0.008616, allocations: 24.78 kB / 0.8228 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.008816, allocations: 15.98 kB / 0.8229 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008183/0.009634, allocations: 152.7 kB / 0.823 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.266e-05/0.009677, allocations: 63.2 kB / 0.8231 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.753e-05/0.009714, allocations: 4 kB / 0.8231 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.076e-05/0.009775, allocations: 55.38 kB / 0.8231 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of SimCode: time 9.52e-07/0.009776, allocations: 0 / 0.8231 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of Templates: time 0.003133/0.01291, allocations: 0.9263 MB / 0.824 GB, free: 12.67 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.671081179752946]