Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008688/0.0008688, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001288/0.002157, allocations: 449.8 kB / 10.44 MB, free: 252 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.001147/0.001147, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00169/0.002837, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.023/1.023, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1044/1.127, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.999/1.999, allocations: 378.3 MB / 0.6079 GB, free: 7.695 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4993/2.499, allocations: 123.3 MB / 0.7283 GB, free: 5.73 MB / 0.698 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0.6562 kB / 0.7296 GB, free: 4.434 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.454e-05/2.646e-05, allocations: 2.312 kB / 0.7296 GB, free: 4.43 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001396/0.001422, allocations: 0.7301 MB / 0.7303 GB, free: 3.734 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.002518, allocations: 1.132 MB / 0.7314 GB, free: 2.594 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.662e-05/0.002565, allocations: 0.6562 kB / 0.7314 GB, free: 2.594 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.285e-05/0.002587, allocations: 3.938 kB / 0.7314 GB, free: 2.59 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 3.909e-05/0.002626, allocations: 10.77 kB / 0.7315 GB, free: 2.582 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.002834, allocations: 46.56 kB / 0.7315 GB, free: 2.539 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 9.929e-05/0.002933, allocations: 57.61 kB / 0.7316 GB, free: 2.492 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 7.705e-05/0.00301, allocations: 4 kB / 0.7316 GB, free: 2.488 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.712e-05/0.003107, allocations: 41.97 kB / 0.7316 GB, free: 2.449 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.658e-05/0.003164, allocations: 17.61 kB / 0.7316 GB, free: 2.434 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.003181, allocations: 9.156 kB / 0.7316 GB, free: 2.426 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.103e-05/0.003272, allocations: 17.41 kB / 0.7316 GB, free: 2.41 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.003296, allocations: 5.859 kB / 0.7316 GB, free: 2.406 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.00332, allocations: 14.41 kB / 0.7317 GB, free: 2.395 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.003458, allocations: 50.39 kB / 0.7317 GB, free: 2.348 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.376e-05/0.003472, allocations: 1.344 kB / 0.7317 GB, free: 2.348 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.112e-06/0.003473, allocations: 0 / 0.7317 GB, free: 2.348 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.326e-05/0.003487, allocations: 1.719 kB / 0.7317 GB, free: 2.348 MB / 0.698 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.0004726/0.003959, allocations: 269.8 kB / 0.732 GB, free: 2.059 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.003994, allocations: 12.03 kB / 0.732 GB, free: 2.047 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.004116, allocations: 90.78 kB / 0.7321 GB, free: 1.941 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.304e-05/0.004199, allocations: 113.7 kB / 0.7322 GB, free: 1.805 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.00421, allocations: 4.875 kB / 0.7322 GB, free: 1.801 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.004222, allocations: 4.906 kB / 0.7322 GB, free: 1.797 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.004329, allocations: 68.05 kB / 0.7322 GB, free: 1.723 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.004336, allocations: 192 / 0.7322 GB, free: 1.723 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.004343, allocations: 384 / 0.7323 GB, free: 1.723 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.004349, allocations: 5.094 kB / 0.7323 GB, free: 1.719 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.396e-05/0.004373, allocations: 11.92 kB / 0.7323 GB, free: 1.707 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.004766, allocations: 172.7 kB / 0.7324 GB, free: 1.523 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.318e-05/0.004829, allocations: 35.52 kB / 0.7325 GB, free: 1.48 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.004845, allocations: 8.859 kB / 0.7325 GB, free: 1.469 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.004862, allocations: 4.484 kB / 0.7325 GB, free: 1.465 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.335e-05/0.004935, allocations: 52.41 kB / 0.7325 GB, free: 1.402 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.004936, allocations: 4 kB / 0.7325 GB, free: 1.398 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0001144/0.00505, allocations: 62.98 kB / 0.7326 GB, free: 1.332 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.005086, allocations: 51.41 kB / 0.7326 GB, free: 1.27 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.854e-05/0.005145, allocations: 114.7 kB / 0.7328 GB, free: 1.145 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.005159, allocations: 33.7 kB / 0.7328 GB, free: 1.105 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.205e-05/0.005191, allocations: 88.72 kB / 0.7329 GB, free: 1.016 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.00521, allocations: 19.84 kB / 0.7329 GB, free: 0.9961 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.005241, allocations: 23.3 kB / 0.7329 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.284e-05/0.005314, allocations: 322.8 kB / 0.7332 GB, free: 0.6445 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.444e-05/0.005328, allocations: 4 kB / 0.7332 GB, free: 0.6406 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.846e-05/0.005367, allocations: 48.22 kB / 0.7333 GB, free: 0.5781 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.538e-05/0.005422, allocations: 53.98 kB / 0.7333 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.005424, allocations: 0.875 kB / 0.7333 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 7.939e-05/0.005504, allocations: 74.22 kB / 0.7334 GB, free: 444 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.005516, allocations: 9.562 kB / 0.7334 GB, free: 436 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.005521, allocations: 4 kB / 0.7334 GB, free: 432 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.005533, allocations: 5.688 kB / 0.7334 GB, free: 428 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.783e-05/0.005611, allocations: 15.98 kB / 0.7334 GB, free: 412 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.005614, allocations: 4 kB / 0.7334 GB, free: 408 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.631e-05/0.005641, allocations: 7.984 kB / 0.7334 GB, free: 400 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.005648, allocations: 0.5938 kB / 0.7334 GB, free: 400 kB / 0.698 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 6.451e-05/0.005712, allocations: 122.7 kB / 0.7336 GB, free: 268 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-06/0.00572, allocations: 4 kB / 0.7336 GB, free: 264 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.696e-05/0.005807, allocations: 58.11 kB / 0.7336 GB, free: 196 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.00581, allocations: 4.5 kB / 0.7336 GB, free: 192 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.005811, allocations: 1.156 kB / 0.7336 GB, free: 192 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.005814, allocations: 0 / 0.7336 GB, free: 192 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.006, allocations: 214.8 kB / 0.7338 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.006002, allocations: 0.9375 kB / 0.7338 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.527e-05/0.006037, allocations: 8 kB / 0.7338 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.532e-06/0.006044, allocations: 7.922 kB / 0.7338 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.006047, allocations: 9.078 kB / 0.7338 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.006052, allocations: 0 / 0.7338 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.006056, allocations: 3.984 kB / 0.7338 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.006057, allocations: 1.031 kB / 0.7339 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.666e-05/0.006134, allocations: 139.5 kB / 0.734 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.006151, allocations: 7.938 kB / 0.734 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.279e-05/0.006194, allocations: 12.48 kB / 0.734 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.673e-05/0.006221, allocations: 9.984 kB / 0.734 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.00623, allocations: 0 / 0.734 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.608e-05/0.006246, allocations: 12.86 kB / 0.734 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.006246, allocations: 0 / 0.734 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001462/0.006392, allocations: 16 kB / 0.734 GB, free: 15.71 MB / 0.7136 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.0001222/0.006514, allocations: 89.61 kB / 0.7341 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.367e-05/0.006598, allocations: 41.53 kB / 0.7342 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.006603, allocations: 0.625 kB / 0.7342 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.793e-05/0.006641, allocations: 25.33 kB / 0.7342 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001616/0.006802, allocations: 65.19 kB / 0.7343 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000597/0.007399, allocations: 149.8 kB / 0.7344 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.278e-05/0.007432, allocations: 59.34 kB / 0.7345 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.454e-05/0.007456, allocations: 5.031 kB / 0.7345 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.805e-05/0.007505, allocations: 59.36 kB / 0.7345 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of SimCode: time 8.22e-07/0.007505, allocations: 0.9375 kB / 0.7345 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of Templates: time 0.002495/0.01, allocations: 0.9049 MB / 0.7354 GB, free: 14.32 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.125857418403029]